diff --git a/app/Http/Middleware/RedirectIfAuthenticated.php b/app/Http/Middleware/RedirectIfAuthenticated.php index fead421a..362b48b0 100644 --- a/app/Http/Middleware/RedirectIfAuthenticated.php +++ b/app/Http/Middleware/RedirectIfAuthenticated.php @@ -4,6 +4,7 @@ namespace App\Http\Middleware; use App\Providers\RouteServiceProvider; use Closure; +use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; class RedirectIfAuthenticated @@ -16,7 +17,7 @@ class RedirectIfAuthenticated * @param string|null ...$guards * @return mixed */ - public function handle($request, Closure $next, ...$guards) + public function handle(Request $request, Closure $next, ...$guards) { $guards = empty($guards) ? [null] : $guards;