0x55aa
โ† Back to Blog

#"laravel"

68 articles tagged with ""laravel""

"laravel""php""web-dev"
6 min read

Laravel Macros: Stop Monkey-Patching and Start Extending Like a Pro ๐Ÿ’

Did you know you can add custom methods to Laravel's Collection, Builder, Request, and Response classes without touching a single vendor file? Laravel Macros are the superpower hiding in plain sight.

Mar 22, 2026
"cybersecurity""web-security""security"
7 min read

PHP Type Juggling: When == Loses Its Mind and Breaks Your Auth ๐Ÿคฏ

PHP's loose comparison operator has some... creative opinions about what equals what. Let's talk about the security nightmare hiding in a single = sign.

Mar 22, 2026
"laravel""php""testing"
6 min read

Laravel Factories & Seeders: Your Test Data Is Lying to You ๐Ÿญ

If your test database has 3 users named 'Test User', one product called 'Product 1', and no edge cases โ€” congratulations, you're writing tests for a world that doesn't exist.

Mar 21, 2026
"laravel""php""websockets"
6 min read

Laravel Reverb: Real-Time Features That Don't Require a Second Mortgage ๐Ÿ’ธโšก

Stop outsourcing your WebSockets to a third-party and paying through the nose for it. Laravel Reverb is here, it's free, and it's stupidly easy to set up.

Mar 20, 2026
"laravel""php""web-dev"
6 min read

Laravel Gates & Policies: Stop Scattering Auth Logic Everywhere ๐Ÿ”

You know that `if ($user->role === 'admin')` check you copied into 12 different controllers? Yeah, that's gotta go. Laravel Gates and Policies are here to save your sanity.

Mar 19, 2026
"laravel""php""web-dev"
6 min read

Laravel Multi-Auth Guards: Stop Building One-Size-Fits-All Authentication ๐Ÿ”

Your admin and your customer shouldn't share the same front door. Here's how to build proper multi-authentication guards in Laravel โ€” and why I learned this the hard way in production.

Mar 18, 2026
"laravel""php""aws"
7 min read

Laravel Vapor: Stop Managing Servers and Start Shipping ๐Ÿš€

Your ops team is tired of 3am 'the server is on fire' calls. Laravel Vapor deploys your app to AWS Lambda and lets you sleep like a baby. Here's everything I learned building serverless e-commerce on it.

Mar 17, 2026
"laravel""php""web-dev"
6 min read

Laravel Telescope: Stop Debugging in the Dark ๐Ÿ”ญ

You're dd()-ing everywhere like it's 2012. Laravel Telescope gives you X-ray vision into every query, job, exception, and request โ€” in real time.

Mar 16, 2026
"laravel""php""web-dev"
5 min read

Laravel Precognition: See Validation Errors Before Users Even Click Submit ๐Ÿ”ฎ

Your users are rage-quitting your forms because they only find out about errors AFTER submitting. Laravel Precognition fixes that โ€” and it's embarrassingly easy to add.

Mar 15, 2026
"laravel""php""web-dev"
6 min read

Laravel Cashier: Stop Building Your Own Billing System (Seriously, Stop) ๐Ÿ’ณ

Every e-commerce project I've touched had a custom Stripe integration that was held together by duct tape and prayers. Then I discovered Laravel Cashier and my weekends came back.

Mar 14, 2026
"laravel""php""web-dev"
6 min read

Laravel Pint: Stop Arguing About Code Style Forever ๐Ÿซง

Your team has spent more time debating tabs vs spaces than actually shipping features. Laravel Pint is here to end the civil war.

Mar 13, 2026
"laravel""php""web-dev"
5 min read

Laravel HTTP Client: Stop Writing Guzzle Spaghetti Code ๐Ÿ

You're still instantiating GuzzleHttp\\Client manually in 2026? We need to talk. Laravel's HTTP Client has been here since 7.x and it's gorgeous.

Mar 12, 2026
"laravel""php""web-dev"
6 min read

Laravel Pulse: Stop Finding Out About Outages on Twitter ๐Ÿฉบ

Your app is probably dying right now and you have absolutely no idea. Laravel Pulse is the health dashboard you didn't know you desperately needed.

Mar 11, 2026
"laravel""php""web-dev"
6 min read

Laravel Horizon: Stop Flying Blind With Your Queues ๐Ÿ”ญ

Your queue workers are silently failing in production and you have NO idea. Laravel Horizon is the beautiful dashboard that gives you X-ray vision into your background jobs โ€” and it takes 5 minutes to set up.

Mar 10, 2026
"laravel""php""web-dev"
6 min read

Laravel Pipelines: Stop Writing Nested If-Else Hell ๐Ÿš€

There's a Pipeline class hiding in Laravel that'll make your messy, nested business logic look like clean, elegant art. Let me show you what I should have learned in year one.

Mar 09, 2026
"laravel""php""api"
6 min read

Laravel Sanctum: Stop Rolling Your Own API Auth (You'll Thank Me Later) ๐Ÿ”

Every developer has written their own token auth system at least once. Every developer has regretted it. Laravel Sanctum exists so you never make that mistake again.

Mar 08, 2026
"laravel""php""web-dev"
6 min read

Laravel Filament: Build an Admin Panel in Minutes (Not Months) ๐Ÿš€

Every Laravel project needs an admin panel. Every dev dreads building one. Enter Filament โ€” the tool that makes admin panels almost fun to build.

Mar 07, 2026
"laravel""php""web-dev"
5 min read

Laravel Artisan Commands: Stop Copy-Pasting Scripts Like a Caveman ๐Ÿฆด

You're manually running PHP scripts from a sticky note? Bro. Laravel has a whole CLI framework built in. Let's fix that.

Mar 06, 2026
"laravel""php""web-dev"
5 min read

Laravel Tinker: Stop Writing Test Controllers Just to Run One Query ๐Ÿ”ฎ

You've done it. We've all done it. Created a TestController just to run a single Eloquent query at 2am. Tinker is here to save your dignity.

Mar 05, 2026
"laravel""php""web-dev"
6 min read

Laravel Socialite: Stop Building Your Own OAuth (Your Users Are Begging You) ๐Ÿ”

Rolling your own OAuth2 is like building your own airplane to go grocery shopping. Laravel Socialite exists. Use it.

Mar 04, 2026
"laravel""php""web-dev"
6 min read

Laravel Task Scheduling: Stop Writing Cron Jobs Like It's 1999 ๐Ÿ•ฐ๏ธ

You shouldn't need a sysadmin to schedule a task. Laravel's built-in scheduler turns 47 cron jobs into clean, version-controlled PHP code โ€” and yes, it can run on serverless too.

Mar 03, 2026
"laravel""php""web-dev"
7 min read

PHP 8.x Features You're Ignoring (and Why Your Code Suffers) ๐Ÿ˜ค

You're running PHP 8.3 but writing code like it's 2012. Here's how modern PHP features can make your Laravel app cleaner, faster, and a lot less embarrassing.

Mar 02, 2026
"laravel""php""web-dev"
6 min read

Laravel Concurrency: Stop Running Slow Tasks One by One (It's 2026!) โšก

Your Laravel app is running tasks sequentially like it's waiting in a McDonald's queue. Laravel 11's Concurrency facade lets you run them all at once. Here's how.

Mar 01, 2026
"laravel""php""web-dev"
6 min read

Laravel Scout: Stop Querying Your Database Like It's Google ๐Ÿ”

Your LIKE '%search%' query is not a search engine. Your users know it. Your database is crying. Let Laravel Scout fix this embarrassment.

Feb 28, 2026
"cybersecurity""web-security""owasp"
7 min read

CSRF: The Attack That Turns Your Users Into Unwitting Hackers ๐Ÿ•ต๏ธโ€โ™‚๏ธ๐Ÿ’€

Your logged-in user visits an innocent-looking page. Suddenly, they've just transferred money, changed their email, or deleted their account โ€” and they have absolutely no idea. Welcome to CSRF, the sneakiest free labor a hacker ever got.

Feb 27, 2026
"laravel""php""performance"
7 min read

Laravel Octane: I Made My App 10x Faster Without Touching a Single Feature ๐Ÿš€

PHP dies after every request. What if it didn't? Laravel Octane keeps your app alive and screaming fast. Here's what happened when I turned it on in production.

Feb 27, 2026
"laravel""php""web-dev"
7 min read

Laravel Telescope: Stop Guessing What's Happening in Your App ๐Ÿ”ญ

Flying blind in production? Laravel Telescope gives your app X-ray vision. Here's how I use it to catch bugs before my users even notice them.

Feb 26, 2026
"laravel""php""web-dev"
6 min read

Laravel Artisan Custom Commands: Stop Running Scripts Manually Like It's 2005 ๐Ÿ”ง

You've been copy-pasting that database cleanup script into Tinker for months. It's time to stop living like this and write a proper Artisan command.

Feb 25, 2026
"laravel""php""web-dev"
6 min read

Laravel Pennant: Ship Features Without the 3am Panic Attack ๐Ÿšฉ

Stop deploying and praying. Feature flags let you ship code without turning it on โ€” and Laravel Pennant makes it embarrassingly easy.

Feb 24, 2026
"laravel""php""web-dev"
6 min read

Laravel Reverb: Real-Time Features Without the WebSocket Nightmares โšก

Real-time notifications, live dashboards, chat - without paying Pusher $50/month or maintaining a Node.js server. Laravel Reverb to the rescue.

Feb 23, 2026
"open-source""github""php"
7 min read

I Published My First Composer Package on Packagist and It Was Nothing Like I Expected ๐Ÿ“ฆ๐Ÿ˜…

I spent 3 days writing a Laravel helper package, 10 minutes publishing it to Packagist, and the next 6 months dealing with the consequences. Here's everything nobody told me before I clicked that 'Submit' button.

Feb 23, 2026
"laravel""php""web-dev"
6 min read

Laravel Sanctum: Stop Rolling Your Own API Auth Like It's 2012 ๐Ÿ”

You're out here writing custom token tables and middleware from scratch while Laravel Sanctum sits in the corner crying. Let's fix that.

Feb 22, 2026
"laravel""php""web-dev"
6 min read

Laravel Signed URLs: Stop Sending Naked Links ๐Ÿ”

You're generating download links anyone can share, bookmark, and abuse forever. Signed URLs fix that โ€” and they're embarrassingly easy to implement.

Feb 21, 2026
"laravel""php""web-dev"
7 min read

Laravel Task Scheduling: Stop Writing Cron Jobs Like It's 1999 โฐ

Your server's crontab is a cryptic mess nobody understands. Laravel's task scheduler lets you write readable, testable, version-controlled scheduled tasks โ€” and it's been sitting in your app this whole time.

Feb 20, 2026
"laravel""php""web-dev"
7 min read

Laravel Horizon: Stop Flying Blind with Your Queues ๐Ÿ”ญ

Your queues are processing jobs in the dark and you have no idea if they're failing. Laravel Horizon is the control tower your background workers desperately need.

Feb 19, 2026
"laravel""php""web-dev"
7 min read

Laravel Artisan Commands: Stop Doing Repetitive Tasks Like a Robot ๐Ÿค–

You're a developer, not a Ctrl+C Ctrl+V machine. Let Artisan handle the boring stuff while you sip coffee and look productive.

Feb 18, 2026
"laravel""php""web-dev"
6 min read

Laravel Pipelines: Stop Writing Spaghetti Code in Your Controllers ๐Ÿ

Your controller has 200 lines of sequential 'do this, then do that' logic? Laravel Pipelines will save your soul (and your code review).

Feb 17, 2026
"cybersecurity""web-security""security"
7 min read

Mass Assignment: The Bug That Turns Users Into Admins ๐Ÿ‘‘

You built a form for users to update their name. They updated their role to 'admin' instead. Welcome to mass assignment, where blind trust in user input costs you everything.

Feb 17, 2026
"laravel""php""validation"
7 min read

Laravel Form Requests: Stop Cluttering Your Controllers with Validation ๐Ÿงน

Still validating everything in your controllers? Form Requests will clean up your code and make you look like a Laravel wizard!

Feb 16, 2026
"laravel""php""eloquent"
6 min read

Laravel Soft Deletes: Delete Without Actually Deleting ๐Ÿ—‘๏ธ

Why permanently delete data when you can just... pretend? Learn how Laravel's soft deletes saved my butt (and can save yours too).

Feb 14, 2026
"laravel""php""queues"
8 min read

Laravel Job Batching: Stop Waiting for 1000 Tasks to Finish One by One ๐Ÿš€โšก

Need to process 10,000 images? Send 5,000 emails? Track it all with progress bars and handle failures like a boss!

Feb 13, 2026
"laravel""php""eloquent"
8 min read

Laravel Model Casts: Making Data Types Not Suck ๐ŸŽฏ

Stop manually converting JSON strings and dates! Laravel's model casts handle data transformation automatically. Let me show you the magic I wish I knew 5 years ago.

Feb 12, 2026
"laravel""php""file-uploads"
6 min read

Laravel File Uploads: Stop Storing PDFs in Your Database! ๐Ÿ“

Your database isn't a file cabinet! Learn how to handle file uploads like a pro, from local storage to S3, without blowing up your server.

Feb 11, 2026
"laravel""php""performance"
7 min read

Laravel N+1 Queries Are Killing Your App (And You Don't Even Know It) ๐Ÿ’€

That 'fast' local app that takes 10 seconds in production? Spoiler: It's N+1 queries. Here's how I hunted them down and made our API 50x faster.

Feb 10, 2026
"laravel""php""performance"
8 min read

Laravel Cache: Stop Hitting the Database Every Single Time ๐Ÿš€๐Ÿ’พ

Your database is crying. Every page load = 47 queries. Let me show you how caching saved our production API from melting down and cut response times by 80%.

Feb 09, 2026
"laravel""php""authorization"
8 min read

Laravel Policies & Gates: Authorization That Doesn't Suck ๐Ÿ”

Stop putting authorization logic everywhere! Let's use Laravel Policies and Gates to keep your code clean and your users in their lane.

Feb 08, 2026
"laravel""php""web-dev"
8 min read

Laravel Factories & Seeders: Fake Data That Looks Real ๐ŸŽญ

Stop manually creating test data like a caveman! Learn how I use Model Factories and Seeders to spin up realistic databases in seconds - the same patterns we use in production at Cubet.

Feb 07, 2026
"laravel""php""web-dev"
7 min read

Laravel Macros: Extend the Framework Without Forking It ๐ŸŽฉโœจ

Want to add custom methods to Laravel's core classes without touching framework code? Macros are your secret weapon. Here's how I've used them in production to keep code DRY.

Feb 06, 2026
"laravel""php""eloquent"
6 min read

Laravel Accessors & Mutators: Stop Fighting with Your Data ๐ŸŽฉโœจ

Your database stores 'john_doe' but you need 'John Doe'? Let Laravel do the heavy lifting automatically!

Feb 05, 2026
"laravel""php""eloquent"
6 min read

Laravel Scopes: Stop Writing the Same Query Over and Over ๐Ÿ”

If you're copy-pasting the same WHERE clauses everywhere, Laravel scopes are about to change your life. Clean, reusable query filters that actually make sense!

Feb 04, 2026
"laravel""livewire""php"
7 min read

Laravel Livewire: Build SPAs Without JavaScript Hell ๐Ÿ”ฅ

Tired of Vue/React complexity? Livewire lets you build reactive UIs with pure PHP. It's like magic, but real!

Feb 03, 2026
"laravel""php""web-dev"
7 min read

Laravel Observers: The Silent Watchers ๐Ÿ‘€

Stop cluttering your controllers! Let Laravel Observers watch your models and handle side effects like a ninja. Clean code incoming!

Feb 02, 2026
"laravel""php""api"
5 min read

Laravel API Resources: JSON Responses That Don't Suck ๐ŸŽจ

Stop returning raw Eloquent models in your API! Learn how Laravel API Resources make your JSON responses clean, consistent, and actually maintainable.

Feb 01, 2026
"laravel""php""database"
6 min read

Laravel Transactions: All or Nothing (No Half-Baked Data) ๐Ÿ›ก๏ธ

Your database is a hot mess because you're not using transactions. Let's fix that before your users notice!

Jan 31, 2026
"laravel""security""sql-injection"
9 min read

I Accidentally Found SQL Injection in Laravel (While Procrastinating) ๐Ÿ˜…

Was building my 'perfect' framework with DDD, TDD, and Clean Architecture. Ended up finding security bugs in Laravel instead. Classic developer move.

Jan 30, 2026
"laravel""php""notifications"
7 min read

Laravel Notifications: Stop Reinventing the Messaging Wheel ๐Ÿ“ฌ

Sending emails, SMS, Slack messages, and push notifications with one simple API. Laravel notifications make messaging so easy, you'll wonder why you ever wrote custom mailers!

Jan 30, 2026
"laravel""php""blade"
6 min read

Laravel Blade Components: Stop Copy-Pasting HTML Like a Caveman ๐ŸŽจ

Still copying the same HTML in 20 different files? Let me introduce you to Blade Components - Laravel's secret weapon for clean, reusable UI code!

Jan 29, 2026
"laravel""php""web-dev"
8 min read

Laravel Route Model Binding: Stop Querying Models Manually Like a Caveman ๐Ÿฆ–

Still writing User::findOrFail($id) in every controller? Laravel's route model binding will make you feel like you've discovered fire!

Jan 28, 2026
"laravel""php""events"
8 min read

Laravel Events: Stop Cramming Everything Into One Controller ๐ŸŽฏ

Your controllers look like spaghetti? Events and Listeners will save your sanity and make your code so clean you'll cry tears of joy!

Jan 27, 2026
"laravel""php""web-dev"
6 min read

Laravel Queues: Stop Making Your Users Wait Like It's the DMV ๐Ÿšฆ

Your users are staring at loading spinners while you send emails? Let's fix that with Laravel queues - the secret weapon for background tasks!

Jan 26, 2026
"laravel""php""collections"
8 min read

Laravel Collections: Stop Writing Loops Like It's 1999 ๐Ÿ”ฅ

Still using foreach everywhere? Laravel Collections will blow your mind and make your code so clean you'll want to frame it!

Jan 25, 2026
"laravel""php""eloquent"
7 min read

Laravel Eloquent Relationships: Beyond hasMany and belongsTo ๐Ÿ”—

Think you know Eloquent relationships? These advanced tricks will change how you query your database forever!

Jan 24, 2026
"laravel""php""dependency-injection"
7 min read

Laravel's Service Container: The Magic Box You've Been Ignoring ๐Ÿ“ฆ

Think dependency injection is scary? Laravel's Service Container makes it so easy, you'll wonder why you ever used 'new' everywhere!

Jan 23, 2026
"laravel""php""eloquent"
6 min read

Eloquent Relationships That Don't Make You Cry ๐Ÿ˜ญ

Stop fighting with your database relationships! Here's how to use Eloquent like a pro (without the headaches).

Jan 21, 2026
"laravel""php""middleware"
7 min read

Laravel Middleware: Your App's Bouncer ๐Ÿšช

Middleware is like having a bouncer at your app's door. Let's learn how to use it without getting kicked out!

Jan 21, 2026
"laravel""php""testing"
7 min read

Laravel Testing That Won't Make You Cry ๐Ÿงช

Testing doesn't have to be boring! Here's how to write Laravel tests that actually save your bacon (and your sanity).

Jan 21, 2026
"laravel""php""validation"
5 min read

Laravel Validation That Doesn't Suck ๐ŸŽฏ

Stop terrorizing your users with cryptic error messages! Here's how to write Laravel validation that's actually... helpful.

Jan 21, 2026
"laravel""php""performance"
4 min read

5 Laravel Tricks That'll Make Your App Fly ๐Ÿš€

Your Laravel app is slow? Let's fix that! Here are 5 simple tricks that actually work (no PhD required).

Jan 20, 2026