diff --git a/stubs/default/app/Http/Controllers/Auth/NewPasswordController.php b/stubs/default/app/Http/Controllers/Auth/NewPasswordController.php index 79ac3cd65..e8368bd22 100644 --- a/stubs/default/app/Http/Controllers/Auth/NewPasswordController.php +++ b/stubs/default/app/Http/Controllers/Auth/NewPasswordController.php @@ -3,6 +3,7 @@ namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; +use App\Models\User; use Illuminate\Auth\Events\PasswordReset; use Illuminate\Http\RedirectResponse; use Illuminate\Http\Request; @@ -40,7 +41,7 @@ public function store(Request $request): RedirectResponse // database. Otherwise we will parse the error and return the response. $status = Password::reset( $request->only('email', 'password', 'password_confirmation', 'token'), - function ($user) use ($request) { + function (User $user) use ($request) { $user->forceFill([ 'password' => Hash::make($request->password), 'remember_token' => Str::random(60),