Skip to content

Admin side with role and permissions

Compare
Choose a tag to compare
@sarthaksavvy sarthaksavvy released this 25 Dec 18:11

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 to GET method for admin.all, admin.role and admin.me routes

All permissions with admin details for every admin

BigIncrement and unsignedBigInteger 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 or update admin, directPermissions can also be synced

All permissions are group by parent

Added permitTo and permitToParent blade syntax and middleware

Add Multiple role to middleware separated by semicolon (:)