| 1 | <?php |
||
| 15 | class Authenticate |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * The Guard implementation. |
||
| 19 | * |
||
| 20 | * @var Guard |
||
| 21 | */ |
||
| 22 | protected $auth; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var \App\Port\Butler\Portals\PortButler |
||
| 26 | */ |
||
| 27 | private $portButler; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Create a new middleware instance. |
||
| 31 | * |
||
| 32 | * @param Guard $auth |
||
| 33 | * @return void |
||
|
|
|||
| 34 | */ |
||
| 35 | public function __construct(Guard $auth, PortButler $portButler) |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Handle an incoming request. |
||
| 43 | * |
||
| 44 | * @param \Illuminate\Http\Request $request |
||
| 45 | * @param \Closure $next |
||
| 46 | * @return mixed |
||
| 47 | */ |
||
| 48 | public function handle(Request $request, Closure $next) |
||
| 56 | } |
||
| 57 |
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.