Laravel uses the safe Bcrypt hashing algorithm for hashing passwords by default. The database cannot be directly accessed to reset a user’s password, nor can it be decrypted without the right password. A password like that will obviously fail.With the help of this comprehensive guide, you’ll be able to easily change the Laravel admin password in the database and regain access to the administration panel.
Follow these directives to ensure that a Laravel user’s password is appropriately set from the database.
1. Login to cPanel
2. Go to Terminal section and access your Laravel folder via SSH
3. Once inside the folder, type in this command to open a different console
[user@rbx106 public_html]$ php artisan tinker
4. You will view a console that starts with >>>
5. Type in the command below
user@rbx106 public_html]$ echo Hash::make('your-new-plaintext-password-here')
Replace your-new-plaintext-password-here with the actual password you want to use. This is in plain text and NOT hashed.
6. You should see output as below.
7. Copy the output and paste it under the password field in users table.