| Total Complexity | 3 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | class Authenticate |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * The authentication guard factory instance. |
||
| 25 | * |
||
| 26 | * @var Auth |
||
| 27 | */ |
||
| 28 | protected $auth; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Create a new middleware instance. |
||
| 32 | * |
||
| 33 | * @param Auth $auth |
||
| 34 | * |
||
| 35 | * @return void |
||
| 36 | */ |
||
| 37 | public function __construct(Auth $auth) |
||
| 38 | { |
||
| 39 | $this->auth = $auth; |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Handle an incoming request. |
||
| 44 | * |
||
| 45 | * @param Request $request |
||
| 46 | * @param \Closure $next |
||
| 47 | * @param string|null $guard |
||
| 48 | * |
||
| 49 | * @return mixed |
||
| 50 | */ |
||
| 51 | public function handle($request, Closure $next, $guard = null) |
||
| 58 | } |
||
| 59 | } |
||
| 60 |