Laravel Change admin password - hash type bcrypt
How to create a laravel hashed password
How to reset password for admin with different table in laravel
Default hash type of passwords in Laravel



bcrypt

https://bcrypt-generator.com/

MD5



Change Users Password in Laravel Using Route
The other way of changing a password is through the route. However, it is not recommended. I am just writing about it as this is also the option to update the password. In the routes callback function, use the same code we used above in the Tinker.


Lets declare a route changepassword and pass the code to the callback function as shown below.


:
Route::get('changepassword', function() {
    $user = App\Models\User::where('email', '[email protected]')->first();
    $user->password = Hash::make('123456');
    $user->save();
 
    echo 'Password changed successfully.';
});
Now, run the URL YOUR_DOMAIN_URL/changepassword in the browser. It will call the route and change the users password. The developer must remove this route once the password is changed.


:
https://artisansweb.net/how-to-chang...rd-in-laravel/