Laravel Authorization is a fantastic package that helps you to quickly create strong policy authorization logic in your Laravel application with minimal effort. This is the contents of the published config file: return [ 'permissions' => [ 'create', 'update', 'delete', 'view all', 'view', 'force delete', 'restore', ], ]; Setup

To set up the package all you need to do is run the following command: php artisan authorizer:setup

You can also generate the policies on a setup by adding the --policies option: php artisan authorizer:setup --policies

Generating policies for all models php artisan authorizer:policies:generate
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners