| 1 | <?php namespace Arcanesoft\Core\Http\Middleware; |
||
| 13 | class CheckAdministrators |
||
| 14 | { |
||
| 15 | /* ------------------------------------------------------------------------------------------------ |
||
| 16 | | Properties |
||
| 17 | | ------------------------------------------------------------------------------------------------ |
||
| 18 | */ |
||
| 19 | /** |
||
| 20 | * The authentication factory instance. |
||
| 21 | * |
||
| 22 | * @var \Illuminate\Contracts\Auth\Factory |
||
| 23 | */ |
||
| 24 | protected $auth; |
||
| 25 | |||
| 26 | /* ------------------------------------------------------------------------------------------------ |
||
| 27 | | Constructor |
||
| 28 | | ------------------------------------------------------------------------------------------------ |
||
| 29 | */ |
||
| 30 | /** |
||
| 31 | * Create a new middleware instance. |
||
| 32 | * |
||
| 33 | * @param \Illuminate\Contracts\Auth\Factory $auth |
||
| 34 | */ |
||
| 35 | public function __construct(Auth $auth) |
||
| 39 | |||
| 40 | /* ------------------------------------------------------------------------------------------------ |
||
| 41 | | Main Functions |
||
| 42 | | ------------------------------------------------------------------------------------------------ |
||
| 43 | */ |
||
| 44 | /** |
||
| 45 | * Run the request filter. |
||
| 46 | * |
||
| 47 | * @param \Illuminate\Http\Request $request |
||
| 48 | * @param \Closure $next |
||
| 49 | * |
||
| 50 | * @return mixed |
||
| 51 | */ |
||
| 52 | public function handle(Request $request, Closure $next) |
||
| 62 | } |
||
| 63 |