Completed
Push — master ( 4da889...aeb898 )
by Igor
04:51
created

Authenticate   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 11
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
wmc 1
1
<?php
2
3
namespace App\Http\Middleware;
4
5
use Illuminate\Auth\Middleware\Authenticate as Middleware;
6
7
class Authenticate extends Middleware
8
{
9
    /**
10
     * Get the path the user should be redirected to when they are not authenticated.
11
     *
12
     * @param  \Illuminate\Http\Request  $request
13
     * @return string
14
     */
15
    protected function redirectTo($request)
16
    {
17
        return route('login');
18
    }
19
}
20