Skip to content
Stuff I'm Up To
Go back

Laravel Forgotten User Password

Edit page

I rarely need to do this and it’s always something I Google when I do. But when I forget the admin users password on my dev app I need to reset it. Easiest way is to use Laravel’s ‘tinker’

$ php artisan tinker
>>> use App\User
>>> $user = User::where('username', '=', 'admin')->first()
>>> $user->password = bcrypt('mysecret')
>>> $user->save()

Edit page
Share this post:

Previous Post
Laravel and Vue.js Authentication
Next Post
Axios and the X-CSRF-TOKEN