Files
librenms-librenms/app/Http/Middleware/Authenticate.php
Jellyfrog efb157f5fb Fix more PHPDoc (#12665)
* Fix PHPDoc

* Fix PHPDoc
2021-03-28 12:18:47 -05:00

22 lines
469 B
PHP

<?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.
*
* @param \Illuminate\Http\Request $request
* @return string|void
*/
protected function redirectTo($request)
{
if (! $request->expectsJson()) {
return route('login');
}
}
}