►Laravel 10 Tutorial Playlist: • Laravel 10 Tutorial: Make Admin Panel...
In Part-26, we will continue working on Subadmins Roles and Permissions for our Laravel 10 admin panel that can be used for any dynamic website.
In this video, we are going to work on active/inactive and delete functionality for sub-admins.
1) Update custom.js file :-
Add jQuery script for active/inactive status for sub admins in custom.js file.
2) Create Route :-
Now create post route for active/inactive status for sub-admins in web.php file :-
Route::post('update-subadmin-status','AdminController@updateSubadminStatus');
3) Create updateSubadminStatus function :-
Now create updateSubadminStatus function at AdminController to update active/inactive status for sub admins.
Now we will work on delete functionality for subadmins.
4) Create Route :-
Create Get route for deleting subadmin in web.php file like below :-
Route::get('delete-subadmin/{id}','AdminController@deleteSubadmin');
5) Create deleteSubadmin function :-
Create deleteSubadmin function at AdminController to delete sub-admin.
Now we are able to delete sub admin as well. Only Super admin or admin will have access to delete subadmin.
In the next video, we will work on the "Add Sub-Admin" functionality.
Thanks for watching :)
►Click here to subscribe for Laravel & other updates - / stackdevelopers
Popular Stack Developers Series that can help you:-
►Laravel Multi-Vendor E-commerce Website - • Laravel Multi Vendor Tutorial
►React JS Tutorial for Beginners with Laravel - • React JS Tutorial with Laravel for Be...
►Laravel Tutorial for Beginners - • Laravel Tutorial for Beginners | Adva...
►GIT Tutorial for Beginners - • Git Tutorial for Beginners | Create y...
►Laravel API Tutorial - • Laravel API Tutorial | Create API fro...
►Laravel Interview Questions - • Laravel Interview Questions & Answers...
►jQuery Tutorial - • jQuery Tutorial
►Laravel Basic E-commerce Series - • Make Admin Panel / E-commerce Website...
►Laravel Dating Series - • Make Dating / Social Networking Websi...
►Join this channel to get the complete source code of all series:
/ @stackdevelopers
Follow Stack Developers on Social Media to get updates and resolve your queries
►Like Facebook Page to get updates - / stackdevelopers2
►Join Facebook Group to resolve your queries - / stackdevelopers
►Follow on Instagram - / stackdevelopers2
►Follow on GitHub - https://github.com/stackdevelopers
#laravel10 #laravel10tutorial #laravel