It is highly recommended for all contributors to update this file whenever there's a major update in source code. Use this tool for easy editing or visit this page for comprehensive guide on markdown syntax.
This package provides an easy way to seed roles and permissions from a csv file to database tables created by Laratrust Package.
Following tables will be truncated on execution of this command:
- permission_user
- permission_role
- permissions
- role_user
- roles
roles-and-permissions:update {csvFilePath}
First 3 columns will have title as follow:
- permission_name
- permission_display_name
- permission_description
Next columns shall have the role name
and display_name
separated by semicolon ;
as follow:
super-admin;Super Admin
Each row will have name of permissions, its display name and description respectively in first three cells. Following cells will have either y
or n
depending on the assignment of that permission to corresponding role.
Here's a Sample CSV File.
Following are the approved items:
- Item-1
Add the suggestions in this wishlist. Only approved wishlist items can be moved to To-dos list:
- Item-1