Artisan.page

make:policy

Create a new policy class

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

Options

forceOptional

Create the class even if the policy already exists

guardOptional

The guard that the policy relies on

modelOptional

The model that the policy applies to

Arguments

nameRequired

The name of the policy