Permission Generator

Getting Super Powers of Permission Generator

If you have a model inside App/Models/Admin/Post.php

then you can generate BREAD permission for that model by using following command

php artisan make:permission Post --all

This will generate BREAD permission for all roles

If you want to generate permission for particular role grab the role id then use following command

php artisan make:permission role 1

This will create necessary permission for role having ID 1

If you only want to generate permission flags you can use

php artisan make:permission role 1 --onlyFlags 

Last updated