Enter a search term to find articles.

Implementing Policy Registration (Before Laravel 8)

January 20, 2020
302 views

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

Marvin Quezon

Full Stack Web Developer

Marvin Quezon · Copyright © 2025 · Privacy · Sitemap