| 1 | <?php |
||
| 14 | class Authenticate |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * The Guard implementation. |
||
| 18 | * |
||
| 19 | * @var Guard |
||
| 20 | */ |
||
| 21 | protected $auth; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Create a new middleware instance. |
||
| 25 | * |
||
| 26 | * @param Guard $auth |
||
| 27 | * @return void |
||
|
|
|||
| 28 | */ |
||
| 29 | public function __construct(Guard $auth) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Handle an incoming request. |
||
| 36 | * |
||
| 37 | * @param \Illuminate\Http\Request $request |
||
| 38 | * @param \Closure $next |
||
| 39 | * @return mixed |
||
| 40 | */ |
||
| 41 | public function handle(Request $request, Closure $next) |
||
| 53 | } |
||
| 54 |
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.