1 | <?php |
||
31 | class DaemonAuthenticate |
||
32 | { |
||
33 | /** |
||
34 | * The Guard implementation. |
||
35 | * |
||
36 | * @var \Illuminate\Contracts\Auth\Guard |
||
37 | */ |
||
38 | protected $auth; |
||
39 | |||
40 | /** |
||
41 | * An array of route names to not apply this middleware to. |
||
42 | * |
||
43 | * @var array |
||
44 | */ |
||
45 | protected $except = [ |
||
46 | 'daemon.configuration', |
||
47 | ]; |
||
48 | |||
49 | /** |
||
50 | * Create a new filter instance. |
||
51 | * |
||
52 | * @param \Illuminate\Contracts\Auth\Guard $auth |
||
53 | * @return void |
||
|
|||
54 | */ |
||
55 | public function __construct(Guard $auth) |
||
59 | |||
60 | /** |
||
61 | * Handle an incoming request. |
||
62 | * |
||
63 | * @param \Illuminate\Http\Request $request |
||
64 | * @param \Closure $next |
||
65 | * @return mixed |
||
66 | */ |
||
67 | public function handle($request, Closure $next) |
||
84 | } |
||
85 |
Adding a
@return
annotation 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.