Admin side with role and permissions
ChangeLog
This is the major release, do not update with the old version as this release has many breaking changes.
-
Activation route changed
-
Removed admin policy and added a dynamic gate to
AuthServiceProvider -
Moved model to the
configurationfile -
Permissiontable added -
Permissioncommands added -
while seeding super admin, permission is added to the role
-
All permission related function is inside
hasPermissiontrait -
All factories moved to database/factories
-
Postmethod toGETmethod for admin.all, admin.role and admin.me routes -
All permissions with admin details for every admin
-
BigIncrementandunsignedBigIntegerfor the schema of admin, admin_role and role table -
Installcommand - include publishing migration, publishing factories, running all migration and seeding initial super admin with role and permissions. -
Role permissionsare added to role resource (for jwt-auth version) -
While creating a role, permissions also stored
-
adminFormRequestis now having role_ids instead of role_id -
while
storeorupdateadmin, directPermissions can also be synced -
All permissions are group by
parent -
Added
permitToandpermitToParentblade syntax and middleware -
Add Multiple role to middleware separated by semicolon (:)