make:policy

Create a new policy class

Options

  • force - Create the class even if the policy already exists Optional
  • guard - The guard that the policy relies on Optional
  • model - The model that the policy applies to Optional

Arguments

  • name - The name of the policy Required
php artisan make:policy [-f|--force] [-m|--model [MODEL]] [-g|--guard [GUARD]] [--] <name>