#27 Laravel 10 Tutorial | Roles and Permissions in Laravel (III) | Add/Edit Sub Admin in Admin Panel

Опубликовано: 07 Октябрь 2024
на канале: Stack Developers
1,330
16

►Laravel 10 Tutorial Playlist:    • Laravel 10 Tutorial: Make Admin Panel...  

In Part-27 of the Laravel 10 Tutorial, we will continue working on Sub admins Roles and Permissions.

In this video, we will work on add/edit functionality for sub-admins in the admin panel.

1) Create Route :-
First of all, create GET/POST route for adding/editing admin/subadmin in web.php file :-
Route::match(['get','post'],'add-edit-subadmin/{id?}','AdminController@addEditSubadmin');

2) Create addEditSubadmin function :-
Now create addEditSubadmin function at AdminController which will work for both add and edit. When subadmin id return then it will work for edit otherwise add subadmin.

3) Create add_edit_subadmin.blade.php file :-
Now create add_edit_subadmin.blade.php file under \resources\views\admin\subadmins\ folder in which we will display add/edit subadmin form with subadmin name, email, password, mobile and image.

To be continued...

►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