1 | <?php |
||
18 | class UserMiddleware |
||
19 | { |
||
20 | /** |
||
21 | * Auth interface. |
||
22 | * |
||
23 | * @var Auth |
||
24 | */ |
||
25 | protected $auth; |
||
26 | |||
27 | /** |
||
28 | * The constructor. |
||
29 | * |
||
30 | * @param Auth $auth |
||
31 | */ |
||
32 | 2 | public function __construct(Auth $auth) |
|
36 | |||
37 | /** |
||
38 | * Check if a user is logged in. |
||
39 | * |
||
40 | * @param Request $request |
||
41 | * @param Closure $next |
||
42 | * |
||
43 | * @return \Illuminate\Http\RedirectResponse |
||
44 | */ |
||
45 | 2 | public function handle(Request $request, Closure $next) |
|
55 | } |