Hi,
how can I login as the admin if I forgot my password? I might have made the situation worse because I tried manually editing it the database. Please help!
1 Answers
Best Answer
Launch the console from main folder with
php artisan tinker
After that you enters Laravels console — all commands from now are interpreted as php code. So to change [email protected]
password you would just run.
$user = App\User::where('email', '[email protected]')->first();
$user->password = Hash::make('password');
$user->save();
That’s it. Password changed.Please login or Register to submit your answer