- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
Laravel 12 Tutorial #92 | Change Password Feature | Password Validation & Update
🔗Laravel 12 Multi-Vendor E-commerce Series Complete Playlist:
https://www.youtube.com/playlist?list=PLLUtELdNs2ZZ_hI7DvqrrhX-ASGD1U2Dl
Welcome to Part 92 of our Laravel 12 Multi-Vendor E-commerce Tutorial Series, where we’re building a complete, professional Multi-Vendor E-commerce Website from scratch.
In this part, we will build the Change Password feature in our Laravel 12 Multi-Vendor E-commerce project.
Users can securely change their password anytime after logging in. The form includes the current password, new password, and confirm password fields, with the same strong password validation rules used during registration.
We also make the email field read-only, add server-side validation with a custom UpdatePasswordRequest, and handle everything via AJAX for a smooth user experience.
The password update logic is handled in the service layer to keep the code clean, maintainable, and testable.
✅ Features covered in this part:
• Change Password form with read-only email
• Strong password validation rules
• Verify current password before update
• AJAX form submission with inline error handling
• Clean service-layer password update logic
✅ Steps to Implement:
1. 📁 Create Change Password Page
Add a new "Change Password" option in the user account sidebar/menu.
When the user clicks on it, they are redirected to a dedicated page (e.g., change_password.blade.php) where they can update their password.
The form should have the following fields:
Current Password
New Password
Confirm New Password
2. 🧪 Add Form Validation Rules
Before updating the password, we ensure the following validations:
✅ Current Password: Required and must match the existing password in the database.
✅ New Password: Required, must be at least 8 characters, and should be different from the current password.
✅ Confirm Password: Must match the new password.
We use Laravel's built-in validation to enforce these rules.
3. 🔐 Verify Current Password
After validation, verify the entered current password against the password stored in the database using Laravel's Hash::check().
If it does not match, return an error message like:
❌ "Your current password is incorrect."
4. 🔄 Update New Password in Database
If the current password matches and validation passes:
Hash the new password using Hash::make().
Update the password in the users table.
Save the changes.
After successful update, show a success message:
✅ "Your password has been updated successfully."
5. 📢 Flash Success/Error Messages
Use Laravel’s session flash messages to show user-friendly alerts after form submission:
🔔 Success: "Password updated successfully."
⚠️ Error: "Failed to update password. Please try again."
6. 🧪 (Optional) Add Password Strength Suggestions
(Optional but recommended) Display password strength indicators or suggestions (like including uppercase, numbers, and symbols) to encourage strong passwords.
7. 🧰 Test the Entire Flow
Go to the "Change Password" page.
Try with a wrong current password (should show an error).
Try mismatched new/confirm passwords (should show validation error).
Try valid inputs (should update successfully and log the user out or keep them logged in based on your app’s policy).
✅ Final Output / What We Achieved
Users can now securely update their password from their account dashboard.
Proper validation, security checks, and error handling are in place.
Passwords are stored hashed in the database using Laravel’s Hash system.
Enhanced user security and account management features.
📢 Don’t forget to Like, Share & Subscribe for more Laravel tutorials! 🚀
🔗Bookmark & follow this Laravel 12 Multi-Vendor E-commerce Series:
https://www.youtube.com/playlist?list=PLLUtELdNs2ZZ_hI7DvqrrhX-ASGD1U2Dl
►Click here to subscribe for Laravel & other updates - https://www.youtube.com/stackdevelopers
Popular Stack Developers Series that can help you:-
►Laravel 12 Tutorial (with MySQL): https://www.youtube.com/playlist?list=PLLUtELdNs2ZbqkUOd-oXHemay3BrsqZqC
►Laravel 11 Tutorial (with MongoDB): https://www.youtube.com/playlist?list=PLLUtELdNs2ZYTn3ft4BMaAilhZJYLMs9d
►Laravel 11 PostgreSQL Tutorial: https://www.youtube.com/playlist?list=PLLUtELdNs2ZZy4jI-wu4jYUL7rbvC8Mgh
►Laravel API Tutorial - https://www.youtube.com/playlist?list=PLLUtELdNs2ZbcCsd4yAAiBU2L3ROREk8P
►Join this channel to get the complete source code of all series:
https://www.youtube.com/channel/UCExO2i-tLU1NyVZD6zOJQlw/join
Follow Stack Developers on Social Media to get updates and resolve your queries
►Like Facebook Page to get updates - http://facebook.com/stackdevelopers2/
►Join Facebook Group to resolve your queries - http://facebook.com/groups/stackdevelopers
►Follow on Instagram - https://www.instagram.com/stackdevelopers2/
►Follow on GitHub - https://github.com/stackdevelopers
#Laravel12 #LaravelEcommerce #MultiVendor #EcommerceDevelopment #WebDevelopment #LaravelTutorial
Видео Laravel 12 Tutorial #92 | Change Password Feature | Password Validation & Update канала Stack Developers
https://www.youtube.com/playlist?list=PLLUtELdNs2ZZ_hI7DvqrrhX-ASGD1U2Dl
Welcome to Part 92 of our Laravel 12 Multi-Vendor E-commerce Tutorial Series, where we’re building a complete, professional Multi-Vendor E-commerce Website from scratch.
In this part, we will build the Change Password feature in our Laravel 12 Multi-Vendor E-commerce project.
Users can securely change their password anytime after logging in. The form includes the current password, new password, and confirm password fields, with the same strong password validation rules used during registration.
We also make the email field read-only, add server-side validation with a custom UpdatePasswordRequest, and handle everything via AJAX for a smooth user experience.
The password update logic is handled in the service layer to keep the code clean, maintainable, and testable.
✅ Features covered in this part:
• Change Password form with read-only email
• Strong password validation rules
• Verify current password before update
• AJAX form submission with inline error handling
• Clean service-layer password update logic
✅ Steps to Implement:
1. 📁 Create Change Password Page
Add a new "Change Password" option in the user account sidebar/menu.
When the user clicks on it, they are redirected to a dedicated page (e.g., change_password.blade.php) where they can update their password.
The form should have the following fields:
Current Password
New Password
Confirm New Password
2. 🧪 Add Form Validation Rules
Before updating the password, we ensure the following validations:
✅ Current Password: Required and must match the existing password in the database.
✅ New Password: Required, must be at least 8 characters, and should be different from the current password.
✅ Confirm Password: Must match the new password.
We use Laravel's built-in validation to enforce these rules.
3. 🔐 Verify Current Password
After validation, verify the entered current password against the password stored in the database using Laravel's Hash::check().
If it does not match, return an error message like:
❌ "Your current password is incorrect."
4. 🔄 Update New Password in Database
If the current password matches and validation passes:
Hash the new password using Hash::make().
Update the password in the users table.
Save the changes.
After successful update, show a success message:
✅ "Your password has been updated successfully."
5. 📢 Flash Success/Error Messages
Use Laravel’s session flash messages to show user-friendly alerts after form submission:
🔔 Success: "Password updated successfully."
⚠️ Error: "Failed to update password. Please try again."
6. 🧪 (Optional) Add Password Strength Suggestions
(Optional but recommended) Display password strength indicators or suggestions (like including uppercase, numbers, and symbols) to encourage strong passwords.
7. 🧰 Test the Entire Flow
Go to the "Change Password" page.
Try with a wrong current password (should show an error).
Try mismatched new/confirm passwords (should show validation error).
Try valid inputs (should update successfully and log the user out or keep them logged in based on your app’s policy).
✅ Final Output / What We Achieved
Users can now securely update their password from their account dashboard.
Proper validation, security checks, and error handling are in place.
Passwords are stored hashed in the database using Laravel’s Hash system.
Enhanced user security and account management features.
📢 Don’t forget to Like, Share & Subscribe for more Laravel tutorials! 🚀
🔗Bookmark & follow this Laravel 12 Multi-Vendor E-commerce Series:
https://www.youtube.com/playlist?list=PLLUtELdNs2ZZ_hI7DvqrrhX-ASGD1U2Dl
►Click here to subscribe for Laravel & other updates - https://www.youtube.com/stackdevelopers
Popular Stack Developers Series that can help you:-
►Laravel 12 Tutorial (with MySQL): https://www.youtube.com/playlist?list=PLLUtELdNs2ZbqkUOd-oXHemay3BrsqZqC
►Laravel 11 Tutorial (with MongoDB): https://www.youtube.com/playlist?list=PLLUtELdNs2ZYTn3ft4BMaAilhZJYLMs9d
►Laravel 11 PostgreSQL Tutorial: https://www.youtube.com/playlist?list=PLLUtELdNs2ZZy4jI-wu4jYUL7rbvC8Mgh
►Laravel API Tutorial - https://www.youtube.com/playlist?list=PLLUtELdNs2ZbcCsd4yAAiBU2L3ROREk8P
►Join this channel to get the complete source code of all series:
https://www.youtube.com/channel/UCExO2i-tLU1NyVZD6zOJQlw/join
Follow Stack Developers on Social Media to get updates and resolve your queries
►Like Facebook Page to get updates - http://facebook.com/stackdevelopers2/
►Join Facebook Group to resolve your queries - http://facebook.com/groups/stackdevelopers
►Follow on Instagram - https://www.instagram.com/stackdevelopers2/
►Follow on GitHub - https://github.com/stackdevelopers
#Laravel12 #LaravelEcommerce #MultiVendor #EcommerceDevelopment #WebDevelopment #LaravelTutorial
Видео Laravel 12 Tutorial #92 | Change Password Feature | Password Validation & Update канала Stack Developers
Laravel 12 Multi Vendor E-commerce Laravel 12 Tutorial Admin Login in Laravel Laravel Service Layer Laravel Admin Service Admin Login Functionality Laravel E-commerce Multi Vendor E-commerce in Laravel Service Class in Laravel AdminController AdminService Laravel Best Practices Laravel Clean Code Laravel Separation of Concerns
Комментарии отсутствуют
Информация о видео
19 октября 2025 г. 8:00:01
00:12:34
Другие видео канала





















