Articles tagged with
#security

Working with Policies in Laravel

December 26th, 2023 — posted in Originals — 4 minute read

As a project grows larger, it can sometimes become confusing to keep authorization logic in the controllers. A solution to this is to use Policies. But even for small projects, this is very powerful, in fact, I try to use it everywhere, it makes my code clean and readable.

#laravel, #policies, #security, #authorization