The Laravel Artisan Cheatsheet
A searchable, bookmarkable cheatsheet for
Laravel's
Artisan commands.
Home
API
Laravel Version
11.x
nova:policy
🖥
nova:policy
Create a new policy class
Options
force
- Create the class even if the policy already exists
Optional
resource
- The resource that the policy applies to
Optional
Arguments
name
- The name of the policy
Required
php artisan nova:policy [-f|--force] [-m|--resource [RESOURCE]] [--] <name>
Click to copy