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

Опубликовано: 01 Январь 1970
на канале: 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 :)


Смотрите видео #13 Make E-com Website in Laravel 7 | Update Admin Details (I) онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Stack Developers 01 Январь 1970, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 3,627 раз и оно понравилось 63 людям.