| 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.attributes.models.attribute')); |
||
| 17 | Bouncer::allow('admin')->to('create', config('rinvex.attributes.models.attribute')); |
||
| 18 | Bouncer::allow('admin')->to('update', config('rinvex.attributes.models.attribute')); |
||
| 19 | Bouncer::allow('admin')->to('delete', config('rinvex.attributes.models.attribute')); |
||
| 20 | Bouncer::allow('admin')->to('audit', config('rinvex.attributes.models.attribute')); |
||
| 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.