Skip to content
All Posts

Tagged note

Architecture

Laravel · · 7 min read

How I Decide What to Test in Laravel

I start with what a test should prove, then choose the boundary that can prove it. This is how I separate Unit, Integration, Feature and browser tests without making every test do the same job.

Laravel · · 7 min read

How I Handle Authorization in Laravel

I separate who a user is from what they're allowed to do. Gates and policies organize the permission rules, but the server still has to enforce them before the operation runs.

Laravel · · 8 min read

How I Use Laravel Queues

I use queues to move work out of the request, but dispatching a job is only the handoff. I still need a worker, a safe retry, and a way to know whether the work finished.

Laravel · · 6 min read

How I Follow a Request Through Laravel

I follow a request from Laravel's entry point to the route handler and back through middleware. Knowing where it can stop gives me a better place to start debugging.

Laravel · · 8 min read

How I Structure Every Laravel Project

After years of iteration, this is the project structure I reach for on every new Laravel app. Actions, services, form requests, and Pest tests. All of it.