ok
Direktori : /home2/selectio/public_html/fms-worksuite/app/Actions/Fortify/ |
Current File : /home2/selectio/public_html/fms-worksuite/app/Actions/Fortify/ResetUserPassword.php |
<?php namespace App\Actions\Fortify; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Validator; use Laravel\Fortify\Contracts\ResetsUserPasswords; class ResetUserPassword implements ResetsUserPasswords { use PasswordValidationRules; /** * Validate and reset the user's forgotten password. * * @param mixed $user * @param array $input * @return void */ public function reset($user, array $input) { Validator::make($input, [ 'password' => $this->passwordRules(), ])->validate(); $user->forceFill([ 'password' => Hash::make($input['password']), ])->save(); } }