make:policy

Create a new policy class

Options

  • guard - The guard that the policy relies on Optional
  • model - The model that the policy applies to Optional

Arguments

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