Advertisement

#9 Make Advance E-com Website in Laravel 6 | Change Password (I) | Settings Page

#9 Make Advance E-com Website in Laravel 6 | Change Password (I) | Settings Page In Part-9 of Advance E-com series, we will create settings page for our admin panel. In settings page, we will create update password form from where admin can update password of admin panel.

1) Create Route :-
First of all, create GET route for settings page in web.php file like below :-
Route::get('settings', 'AdminController@settings');

We will also keep this route in admin middleware Route::group to protect it from unauthorized access.

2) Create settings function :-
Now we will create settings function in AdminController that we will return to setting blade file.

3) Create admin_settings.blade.php :-
Now we will create admin_settings.blade.php file similar to admin_dashboard.blade.php file that we have created earlier on.

Now copy the form design content from AdminLTE template from path /pages/forms/general.html

We will add email, current password, new password and confirm password fields.

4) Update settings function :-
Now we will update settings function in AdminController to get the current admin details like email and password from Auth guard admin and return to settings page.

5) Include Admin Model :-
Now we will include Admin model at top of the AdminController like below :-
use App\Admin;

6) Update admin_settings.blade.php :-
Now we will update settings page and will show email in update password form that we have got from settings function at AdminController from admin guard.

7) Update admin_header.blade.php file :-
Now we will also update admin header to show settings link along with admin name and type who logged in.

In next video, we will upgrade our Laravel 6 project to Laravel 7 and after that will continue working on update password functionality.

Thanks for watching :)

learn laravel 6,laravel 6,advance ecom website laravel,laravel 6 update password functionality,laravel 6 update password form,make ecom in laravel 6,make ecom website in laravel 6,make ecommerce website in laravel 6,laravel 6 ecomm website,laravel6 admin password functionality,

Post a Comment

0 Comments