Zizaco / entrust

Role-based Permissions for Laravel 5
MIT License
6.05k stars 1.29k forks source link

What would be correct way to create middleware for dynamically created roles/permissions? #931

Open PrafullaKumarSahu opened 5 years ago

PrafullaKumarSahu commented 5 years ago

Hello,

Thank you and congratulations for this awesome package.

I want to know if there is any way I can define middleware based on roles and permissions and for every creation of new permissions and roles, may be it will be not possible as how the app will know what to protect for which role and permission?

But, still I would like to know your thoughts and view on it, Sorry for creating an issue, if there is a better platform for this discussion I don;t know.