We can use Tinker to change a Laravel user password from the console using theses instructions.
Start Tinker
php artisan tinker
The shell is launched
Psy Shell v0.12.9 (PHP 8.2.4 — cli) by Justin Hileman
>
Select the concerned user by email
> $user = App\Models\User::where('email', '[email protected]')->first();
= App\Models\User {#7434
id: 24,
name: "Maher",
last_name: "Sakka",
email: "[email protected]",
phone: null,
status: 1,
previous_status: null,
login_count: null,
last_login_at: null,
email_verified_at: null,
#password: "$2y$12$IE0iNZZRA0X7c5TkWpZR8.ifAeG74TYnS5ZR7f255H87l0pmVP0Pq",
two_factor_secret: null,
two_factor_recovery_codes: null,
two_factor_confirmed_at: null,
#remember_token: null,
created_at: "2025-07-23 11:04:36",
updated_at: "2025-07-23 11:04:36",
image_file_name: null,
image_mime_type: null,
image_path: null,
}
Update the password
> $user->password = Hash::make('new_secure_password');
= "$2y$12$VN9L24jBW3Vyu73WDHq9COVQu4oxIqrYFJWvkT1iWYbMfOGaehzKi"
Save the record
> $user->save();
= true
and done !