Automatic Policy Discovery

Episode 1 Run Time 5:42

First up on the agenda is automatic policy discovery. In past versions of Laravel, each time a policy class is generated, you'd need to visit your AuthServiceProvider to manually wire it up with the appropriate model. It's not the end of the world, but still nonetheless a bit tedious. Now in Laravel 5.8, as long as you follow the standard naming convention, this policy discovery happens automatically.

Publish Date: February 26, 2019