1 | <?php namespace Anomaly\Streams\Platform\Http\Middleware; |
||
14 | class Authenticate |
||
15 | { |
||
16 | |||
17 | /** |
||
18 | * The Guard implementation. |
||
19 | * |
||
20 | * @var Guard |
||
21 | */ |
||
22 | protected $auth; |
||
23 | |||
24 | /** |
||
25 | * Create a new filter instance. |
||
26 | * |
||
27 | * @param Guard $auth |
||
28 | * @return void |
||
|
|||
29 | */ |
||
30 | public function __construct(Guard $auth) |
||
34 | |||
35 | /** |
||
36 | * Handle an incoming request. |
||
37 | * |
||
38 | * @param \Illuminate\Http\Request $request |
||
39 | * @param \Closure $next |
||
40 | * @return mixed |
||
41 | */ |
||
42 | public function handle($request, Closure $next) |
||
54 | } |
||
55 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.