Skip to content

Admin side with role and permissions

Compare
Choose a tag to compare
@sarthaksavvy sarthaksavvy released this 25 Dec 17:17
· 16 commits to master since this release

ChangeLog

This is the major release, do not update with the old version as this release has many breaking changes.

  1. Activation route changed

  2. Removed admin policy and added a dynamic gate to AuthServiceProvider

  3. Moved model to the configuration file

  4. Permission table added

  5. Permission commands added

  6. while seeding super admin, permission is added to the role

  7. All permission related function is inside hasPermission trait

  8. All factories moved to database/factories

  9. Post method to GET method for admin.all, admin.role and admin.me routes

  10. All permissions with admin details for every admin

  11. BigIncrement and unsignedBigInteger for the schema of admin, admin_role and role table

  12. Install command - include publishing migration, publishing factories, running all migration and seeding initial super admin with role and permissions.

  13. Role permissions are added to role resource (for jwt-auth version)

  14. While creating a role, permissions also stored

  15. adminFormRequest is now having role_ids instead of role_id

  16. while store or update admin, directPermissions can also be synced

  17. All permissions are group by parent

  18. Added permitTo and permitToParent blade syntax and middleware

  19. Add Multiple role to middleware separated by semicolon (:)