ldc-mesbr-app/app/Http/Middleware/Authenticate.php

20 lines
408 B
PHP
Raw Permalink Normal View History

2019-01-15 14:17:15 +01:00
<?php
namespace App\Http\Middleware;
use Illuminate\Auth\Middleware\Authenticate as Middleware;
class Authenticate extends Middleware
{
/**
* Get the path the user should be redirected to when they are not authenticated.
*
2025-04-03 09:30:16 +02:00
* @param \Illuminate\Http\Request $request
2019-01-15 14:17:15 +01:00
* @return string
*/
protected function redirectTo($request)
{
return route('login');
}
}