$input */ public function reset( User $user, array $input ): void { Validator::make( $input, [ 'password' => $this->passwordRules(), ] )->validate(); $user->forceFill( [ 'password' => Hash::make( $input['password'] ), ] )->save(); } }