AsgardCMS (Laravel) reset user password using tinker

First you need to open tinker from your app root folder:

php artisan tinker

AsgardCMS uses its own entity to handle user's data:

$user = Modules\User\Entities\Sentinel\User::where('email', 'user@example.com')->first();

$user->password = Hash::make('new_password');

$user->save();

Done!

Comments

Popular posts from this blog

El poder de la línea de comandos