| Total Complexity | 3 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class Authenticate |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * The authentication guard factory instance. |
||
| 19 | * |
||
| 20 | * @var Auth |
||
| 21 | */ |
||
| 22 | protected $auth; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Authenticate constructor. |
||
| 26 | * |
||
| 27 | * @param Auth $auth |
||
| 28 | */ |
||
| 29 | public function __construct(Auth $auth) |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Handle an incoming request. |
||
| 36 | * |
||
| 37 | * @param $request |
||
| 38 | * @param Closure $next |
||
| 39 | * @param $guard |
||
| 40 | * |
||
| 41 | * @return JsonResponse|mixed |
||
| 42 | */ |
||
| 43 | public function handle($request, Closure $next, $guard = null) |
||
| 58 |