#13 Make E-com Website in Laravel 7 | Update Admin Details (I)

Published: 01 January 1970
on channel: Stack Developers
3,627
63

In Part-13 of Advance E-com Series, we will start working on updating and validating admin details like admin name, image and mobile.

1) Create Route :-
Create GET/POST route for updating admin details in web.php file like below :-
Route::match(['get','post'],'update-admin-details', 'AdminController@updateAdminDetails');

2) Create updateAdminDetails function :-
Create updateAdminDetails function in AdminController and return to update_admin_details.blade.php file.

3) Create update_admin_details.blade.php file :-
Now create update_admin_details.blade.php file at resources/views/admin/ folder.

We will create update admin details form with admin name, email, image and mobile with email as read only.

4) Update updateAdminDetails function :-
Now update updateAdminDetails function to get admin name and mobile and update in admins table.

We will also validate name and mobile and return to update admin details form in case name and mobile is not valid.

5) Update update_admin_details.blade.php file :-
We will add alert div at update_admin_details.blade.php file that we will display in case if name or mobile is not valid.

In next video, we will validate and upload admin image as well.

Thanks for watching :)


Watch video #13 Make E-com Website in Laravel 7 | Update Admin Details (I) online without registration, duration hours minute second in high quality. This video was added by user Stack Developers 01 January 1970, don't forget to share it with your friends and acquaintances, it has been viewed on our site 3,627 once and liked it 63 people.