{"repo":"pktharindu/nova-permissions","free":true,"listed":false,"github":"https://github.com/pktharindu/nova-permissions","clone":"git clone https://github.com/pktharindu/nova-permissions.git","description":"Add Permissions based authorization for your Nova installation via User-based Roles and Permissions. Roles are defined in the database whereas Permissions are defined in the code base.","language":"PHP","stars":136,"topics":["laravel","nova","tool","acl","roles","permissions","access-control","gates","policies","authentication"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Laravel Nova Grouped Permissions (RBAC) Add Permissions based authorization for your Nova installation via Role-Based Access Control (RBAC). Roles are defined in the database whereas Permissions are defined in the code base. It allows you to group your Permissions into Groups and attach it to Users. = Nova 4 v3.x ----------- ------ Roles are defined in the Database and Permissions are defined in the Codebase As a result, you won't see any Permissions resource. The Roles resource will get the permissions from the Gates defined in your code. - Laravel Nova Grouped Permissions (RBAC) - Installation - Permissions with Groups - Index View - Detail View - Edit View - Usage - Create a Model Policy - Customization - Use your own Resources - Support - Credits - License Installation You can install the package in to a Laravel app that uses Nova via composer: Publish the Configuration with the following command: Configuration file includes some dummy permissions for your refference. Feel free to remove them and add your own permissions. Publish the Migration with the following command: Migrate the Database: Next up, you must register the tool with Nova. This is typically done in the tools method of the NovaServiceProvider . Create a new policy: After that, register the RolePolicy along with any other policies you may have and define the gates in the boot method of the AuthServiceProvider like below. Then, use HasRoles Traits in your User model. Finally, add BelongsToMany fields to you a","default_branch":null,"files":null,"tree":[],"storefront":"/r/pktharindu","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/pktharindu/nova-permissions/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}