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