"laravel""php"
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
6 min read
Read more