> For the complete documentation index, see [llms.txt](https://pratikdai404.gitbook.io/adminetic/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pratikdai404.gitbook.io/adminetic/commands/permission-generator.md).

# 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 
```
