tymondesigns / jwt-auth

🔐 JSON Web Token Authentication for Laravel & Lumen
https://jwt-auth.com
MIT License
11.28k stars 1.55k forks source link

Want recommendation for compatible Roles and Permissions Package for Tymon JWT in Laravel 8 #2267

Open DhrutiPandyaOP opened 2 months ago

DhrutiPandyaOP commented 2 months ago

Roles and Permissions Package Compatible with Tymon JWT in Laravel

I'm seeking advice on the best library or package to handle roles and permissions with Tymon JWT in a Laravel project. The project currently maintains all users in a single table. Previously, I used Entrust for role and permission management, verifying abilities in middleware, but it no longer works with the new Laravel versions.

Your environment

Q A
Bug? no
New Feature? no
Framework Laravel
Framework version 10.0
PHP version 7.3

Steps to reproduce

Tell us how to reproduce this issue.

Expected behaviour

I need a reliable, stable, and secure package for handling roles and permissions that integrates well with Tymon JWT. It should:

  1. Allow seamless integration with the existing user table.
  2. Support verifying abilities in middleware.
  3. Be easy to implement without significantly affecting the current production project.

Actual behaviour

Currently, the project is unable to manage roles and permissions effectively since Entrust no longer works with the latest Laravel versions. This hinders the ability to verify user abilities in middleware and manage user permissions securely.

Please let me know if any additional information is needed or if there are specific requirements I should consider when choosing a new library.