Artisan.page

make:policy

Create a new policy class

Terminal
php artisan make:policy [-m|--model [MODEL]] [-g|--guard [GUARD]] [--] <name>

Options

guardOptional

The guard that the policy relies on

modelOptional

The model that the policy applies to

Arguments

nameRequired

The name of the class