entrust icon indicating copy to clipboard operation
entrust copied to clipboard

making the package dynamic

Open darvishiyan-mahdi opened this issue 5 years ago • 6 comments

first of all i want to thank you because of your awsome package i want to know is there anyway to make it dynamic for example i deploy the system and the user of system want to define a new role in system i want to know is there any way that the system handle the role and route by itself with out coding?

darvishiyan-mahdi avatar Nov 25 '18 12:11 darvishiyan-mahdi

Well I think the current package is sufficient if the user wants to create role or permission dynamically without coding (I think you meant front end) Just give the required details to create role or permissions (in front end) and from backend use the same Role::create() and Permission::create() methods or you can directly insert the data into necessary tables(permissions, roles , permission_role and role_user) if you know how they work.They are just simple relationships like joins.

shkrwnd avatar Nov 25 '18 22:11 shkrwnd

Well I think the current package is sufficient if the user wants to create role or permission dynamically without coding (I think you meant front end) Just give the required details to create role or permissions (in front end) and from backend use the same Role::create() and Permission::create() methods or you can directly insert the data into necessary tables(permissions, roles , permission_role and role_user) if you know how they work.They are just simple relationships like joins.

i know the mechanism but i like to know how does it handle in the role

darvishiyan-mahdi avatar Nov 25 '18 22:11 darvishiyan-mahdi

Well I think the current package is sufficient if the user wants to create role or permission dynamically without coding (I think you meant front end) Just give the required details to create role or permissions (in front end) and from backend use the same Role::create() and Permission::create() methods or you can directly insert the data into necessary tables(permissions, roles , permission_role and role_user) if you know how they work.They are just simple relationships like joins.

i know the mechanism but i like to know how does it handle in the role

So you want to know how it works internally.

shkrwnd avatar Nov 25 '18 22:11 shkrwnd

Well I think the current package is sufficient if the user wants to create role or permission dynamically without coding (I think you meant front end) Just give the required details to create role or permissions (in front end) and from backend use the same Role::create() and Permission::create() methods or you can directly insert the data into necessary tables(permissions, roles , permission_role and role_user) if you know how they work.They are just simple relationships like joins.

i know the mechanism but i like to know how does it handle in the role

So you want to know how it works internally.

i want to know when i deploy the system and they make a new role in it does entrust can handle it by itself or not?

darvishiyan-mahdi avatar Nov 26 '18 05:11 darvishiyan-mahdi

Well I think the current package is sufficient if the user wants to create role or permission dynamically without coding (I think you meant front end) Just give the required details to create role or permissions (in front end) and from backend use the same Role::create() and Permission::create() methods or you can directly insert the data into necessary tables(permissions, roles , permission_role and role_user) if you know how they work.They are just simple relationships like joins.

i know the mechanism but i like to know how does it handle in the role

So you want to know how it works internally.

i want to know when i deploy the system and they make a new role in it does entrust can handle it by itself or not?

Yes it does handle it by itself .You can make any role or permission after deploying your application as it directly queries the database and stores it in cache.

shkrwnd avatar Nov 28 '18 14:11 shkrwnd

Yes it handle the role but does it handle the route by it self?

On Wed, Nov 28, 2018, 17:54 Shikhar Tiwari [email protected] wrote:

Well I think the current package is sufficient if the user wants to create role or permission dynamically without coding (I think you meant front end) Just give the required details to create role or permissions (in front end) and from backend use the same Role::create() and Permission::create() methods or you can directly insert the data into necessary tables(permissions, roles , permission_role and role_user) if you know how they work.They are just simple relationships like joins.

i know the mechanism but i like to know how does it handle in the role

So you want to know how it works internally.

i want to know when i deploy the system and they make a new role in it does entrust can handle it by itself or not?

Yes it does handle it by itself .You can make any role or permission after deploying your application as it directly queries the database and stores it in cache.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Zizaco/entrust/issues/936#issuecomment-442464195, or mute the thread https://github.com/notifications/unsubscribe-auth/Aq5g6Js9_23a1emXlrAyDm3qPQ_6RSocks5uzpytgaJpZM4Yx1g3 .

darvishiyan-mahdi avatar Nov 28 '18 15:11 darvishiyan-mahdi