Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function run() |
||
15 | { |
||
16 | Bouncer::allow('admin')->to('access-managerarea'); |
||
17 | Bouncer::allow('manager')->to('access-managerarea'); |
||
18 | |||
19 | Bouncer::allow('admin')->to('list', config('rinvex.tenants.models.tenant')); |
||
20 | Bouncer::allow('admin')->to('create', config('rinvex.tenants.models.tenant')); |
||
21 | Bouncer::allow('admin')->to('update', config('rinvex.tenants.models.tenant')); |
||
22 | Bouncer::allow('admin')->to('delete', config('rinvex.tenants.models.tenant')); |
||
23 | Bouncer::allow('admin')->to('audit', config('rinvex.tenants.models.tenant')); |
||
24 | } |
||
25 | } |
||
26 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.