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