Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function run() |
||
15 | { |
||
16 | Bouncer::allow('admin')->to('list', config('rinvex.contacts.models.contact')); |
||
17 | Bouncer::allow('admin')->to('create', config('rinvex.contacts.models.contact')); |
||
18 | Bouncer::allow('admin')->to('update', config('rinvex.contacts.models.contact')); |
||
19 | Bouncer::allow('admin')->to('delete', config('rinvex.contacts.models.contact')); |
||
20 | Bouncer::allow('admin')->to('audit', config('rinvex.contacts.models.contact')); |
||
21 | } |
||
22 | } |
||
23 |
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.