| 1 | <?php |
||
| 8 | class Authenticate |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * The authentication guard factory instance. |
||
| 12 | * |
||
| 13 | * @var \Illuminate\Contracts\Auth\Factory |
||
| 14 | */ |
||
| 15 | protected $auth; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Create a new middleware instance. |
||
| 19 | * |
||
| 20 | * @param \Illuminate\Contracts\Auth\Factory $auth |
||
| 21 | * |
||
| 22 | * @return void |
||
|
|
|||
| 23 | */ |
||
| 24 | public function __construct(Auth $auth) |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Handle an incoming request. |
||
| 31 | * |
||
| 32 | * @param \Illuminate\Http\Request $request |
||
| 33 | * @param \Closure $next |
||
| 34 | * @param string|null $guard |
||
| 35 | * |
||
| 36 | * @return mixed |
||
| 37 | */ |
||
| 38 | public function handle($request, Closure $next, $guard = null) |
||
| 46 | } |
||
| 47 |
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.