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!
Launch the console from main folder with
php artisan tinkerAfter 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();That’s it. Password changed.
$user->password = Hash::make('password');
Please login or Register to submit your answer