🖥️
Adminetic
  • Introduction
  • What is Adminetic
  • Prerequisites
  • Installation
  • Configurations
  • Modules
    • User Management
    • Role Management
    • Settings
    • Preference
    • Activity
  • Commands
    • CRUD Generator
    • Permission Generator
    • Repo Generator
    • Superuser Generator
    • Dummy Generator
    • API Generator
    • Helper Command
  • Services
    • OAuth
    • MyMenu
    • MyDashboard
    • 😎Bouncer
    • 💻CLI
  • Change Logs
  • Github Repo
  • Addons
    • Announcement
    • Contact
    • Website
    • Notify
    • Backup
    • Google Analytics
    • Business Hour
    • Newsletter
  • Example Walkthrough
Powered by GitBook
On this page

Was this helpful?

  1. Commands

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 
PreviousCRUD GeneratorNextRepo Generator

Last updated 3 years ago

Was this helpful?