#156

Veröffentlicht am: 01 Januar 1970
auf dem Kanal: Stack Developers
923
16

In Part-156 of E-com Series, we will continue working on Admin Roles / Multiple Admins / Sub - Admins. We will give access of admin panel to sub admins as per their roles assigned by admin. Sub Admin will login into the admin panel and going to have limited access.

1) Update Adminlogin.php :-
First of all, update Adminlogin.php model file to get the sub admin details so that we can get the sub admin roles assigned by the admin. And we will put those roles in session to access them every where.

2) Update admin_sidebar.blade.php file :-
We will add conditions in admin_sidebar.blade.php file to check whether the sub admin is having access for the module or not. We will not show Add/View links if no access is there.

3) Update CategoryController.php :-
We will update add/edit/view category functions to check if the sub admin is having access. And if there is no access then we will send sub admin to dashboard with error message.

To be continued...


Auf dieser Seite können Sie das Online-Video #156 mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Stack Developers 01 Januar 1970 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 923 Mal angesehen und es wurde von 16 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!