help with main password

Laraship QuestionsCategory: Technicalhelp with main password
Robert Zohrer asked 4 years ago
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
laraship Staff answered 4 years ago
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 password you would just run.
$user = App\User::where('email', '')->first();
$user->password = Hash::make('password');
That’s it. Password changed.