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