►Laravel 11 Tutorial (with MongoDB): • Laravel 11 Tutorial (with MongoDB)
This is Part 26 of the Laravel 11 Tutorial in which we are building the e-commerce website with Laravel as the front end and MongoDB as the back end. We will continue working on Roles and Permissions in Laravel 11. 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 a post route for active/inactive status for sub-admins in the web.php file:-
Route::post('update-subadmin-status',[AdminController::class,'updateSubadminStatus']);
3) Create updateSubadminStatus function:-
Now create the updateSubadminStatus function at AdminController to update the active/inactive status for sub-admins.
Now we will work on delete functionality for subadmins.
4) Create Route:-
Create Get route for deleting sub-admin in web.php file like below:-
Route::get('delete-subadmin/{id}',[AdminController::class,'deleteSubadmin']);
5) Create deleteSubadmin function:-
Create deleteSubadmin function at AdminController to delete sub-admin.
Now we can delete sub-admin as well. Only the Super admin or admin will have access to delete the 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 MongoDB Tutorial: • Laravel MongoDB Tutorial
►Laravel 10 Tutorial Playlist: • Laravel 10 Tutorial: Make Admin Panel...
►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
#laravel11 #laravel #mongodb #mongodbtutorial
Смотрите видео Laravel 11 Tutorial with MongoDB #26 | Roles and Permissions (II) | Active Subadmins in Admin Panel онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Stack Developers 01 Январь 1970, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 134 раз и оно понравилось 3 людям.