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
configuration
file -
Permission
table added -
Permission
commands added -
while seeding super admin, permission is added to the role
-
All permission related function is inside
hasPermission
trait -
All factories moved to database/factories
-
Post
method toGET
method for admin.all, admin.role and admin.me routes -
All permissions with admin details for every admin
-
BigIncrement
andunsignedBigInteger
for the schema of admin, admin_role and role table -
Install
command - include publishing migration, publishing factories, running all migration and seeding initial super admin with role and permissions. -
Role permissions
are added to role resource (for jwt-auth version) -
While creating a role, permissions also stored
-
adminFormRequest
is now having role_ids instead of role_id -
while
store
orupdate
admin, directPermissions can also be synced -
All permissions are group by
parent
-
Added
permitTo
andpermitToParent
blade syntax and middleware -
Add Multiple role to middleware separated by semicolon (:)