1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-13 06:32:40 +01:00
invoiceninja/app/Http/Middleware/Authenticate.php

20 lines
409 B
PHP
Raw Normal View History

2018-10-04 19:10:43 +02: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.
*
* @param \Illuminate\Http\Request $request
2018-10-04 19:10:43 +02:00
* @return string
*/
protected function redirectTo($request)
{
return route('login');
}
}