In this article we will implement the Change password functionality over the basic Authentication that is provided by Laravel. Before diving into the steps, make sure you have Laravel Project setup along with Authentication ready.
Route::post('/changePassword','HomeController@changePassword')->name('changePassword'); Controller Method public function changePassword(Request $request){ if (!(Hash::check($request->get('current-password'), Auth::user()->password))) { // The passwords matches return redirect()->back()->with("error","Your current password does not matches with the password you provided. Please try again."); } if(strcmp($request->get('current-password'), $request->get('new-password')) == 0){ //Current password and new password are same return redirect()->back()->with("error","New Password cannot be same as your current password.
https://github.com/5balloons/change-password-laravel https://demo.5balloons.info/changePassword Once you have implemented the Change Password Functionality, you might also find following tutorial useful for extending Laravel Authentication Functionality.