1 | <?php |
||
8 | class Authenticate |
||
9 | { |
||
10 | /** |
||
11 | * The Guard implementation. |
||
12 | * |
||
13 | * @var Guard |
||
14 | */ |
||
15 | protected $auth; |
||
16 | |||
17 | /** |
||
18 | * Create a new filter instance. |
||
19 | * |
||
20 | * @param Guard $auth |
||
21 | * @return void |
||
|
|||
22 | */ |
||
23 | public function __construct(Guard $auth) |
||
27 | |||
28 | /** |
||
29 | * Handle an incoming request. |
||
30 | * |
||
31 | * @param \Illuminate\Http\Request $request |
||
32 | * @param \Closure $next |
||
33 | * @return mixed |
||
34 | */ |
||
35 | public function handle($request, Closure $next) |
||
47 | } |
||
48 |
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.