Home Implementing Policy Registration (Before Laravel 8)

Enter a search term to find articles.
2020-01-20
159

Implementing Policy Registration (Before Laravel 8)

One good reason why you should not add custom public methods in your controllers aside from what --resource provides: Authorizations (aka Policies) registration.

Here, I show one neat trick I used to do (before Laravel 8 policy auto-discovery) to register my policies.

Policy

Marvin Quezon

Full Stack Web Developer
Marvin Quezon · Copyright © 2024 · Privacy · Sitemap