| Total Complexity | 3 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 5 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace Distilleries\PermissionUtil\Http\Middleware; |
||
| 7 | class CheckAccessPermission { |
||
| 8 | |||
| 9 | protected $app; |
||
| 10 | /** |
||
| 11 | * The Guard implementation. |
||
| 12 | * |
||
| 13 | * @var \Distilleries\PermissionUtil\Helpers\PermissionUtil |
||
| 14 | */ |
||
| 15 | protected $permission; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Create a new filter instance. |
||
| 19 | * |
||
| 20 | */ |
||
| 21 | 2 | public function __construct(Container $app) |
|
| 22 | { |
||
| 23 | 2 | $this->app = $app; |
|
| 24 | 2 | $this->permission = $app->make('permission-util'); |
|
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Handle an incoming request. |
||
| 29 | * |
||
| 30 | * @param \Illuminate\Http\Request $request |
||
| 31 | * @param \Closure $next |
||
| 32 | * @return mixed |
||
| 33 | */ |
||
| 34 | 2 | public function handle(Request $request, Closure $next) |
|
| 43 | } |
||
| 44 | } |