Go to source project folder and type
php artisan tinker
$user = App\User::where('email', 'admin@laravel.com')->first();
You go to the router file routes/web.php and add content
1 2 3 4 5 6 7 8 9 |
<?php Route::get('changepassword',
function() { $user =
App\User::where('email', 'admin@laravel.com')->first(); $user->password
= Hash::make('123456'); $user->save(); echo 'Password
changed successfully.'; }); ?> |
And the run on your browser to change password with url
YOUR_DOMAIN_URL/changepassword
Comments
Post a Comment