Creating a policy
To create a policy, we use the “php artisan make:module:policy ModuleName policyName” command.
php artisan make:module:policy blog BlogPolicy
This will create a policy in the path modules/blog/src/Policies/BlogPolicy.php
To create a policy, we use the “php artisan make:module:policy ModuleName policyName” command.
php artisan make:module:policy blog BlogPolicy
This will create a policy in the path modules/blog/src/Policies/BlogPolicy.php