2018-10-04 19:10:43 +02:00
|
|
|
<?php
|
2019-05-11 05:32:07 +02:00
|
|
|
/**
|
|
|
|
* Invoice Ninja (https://invoiceninja.com)
|
|
|
|
*
|
|
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
|
|
*
|
2020-01-07 01:13:47 +01:00
|
|
|
* @copyright Copyright (c) 2020. Invoice Ninja LLC (https://invoiceninja.com)
|
2019-05-11 05:32:07 +02:00
|
|
|
*
|
|
|
|
* @license https://opensource.org/licenses/AAL
|
|
|
|
*/
|
2018-10-04 19:10:43 +02:00
|
|
|
|
|
|
|
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.
|
|
|
|
*
|
2018-10-15 07:00:48 +02:00
|
|
|
* @param \Illuminate\Http\Request $request
|
2018-10-04 19:10:43 +02:00
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
protected function redirectTo($request)
|
|
|
|
{
|
|
|
|
return route('login');
|
|
|
|
}
|
|
|
|
}
|