type hint the middleware Request (#5438)
stemming from https://github.com/laravel/framework/pull/34224
This commit is contained in:
parent
a6ca577839
commit
38bc9119eb
|
@ -4,6 +4,7 @@
|
|||
|
||||
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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue