Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 1 | Features | 1 |
1 | <?php |
||
14 | public function run() |
||
15 | { |
||
16 | factory(Sale::class, 5)->make()->each(function (Sale $sale) { |
||
17 | Guitar::unsold()->first()->sale()->save($sale); |
||
18 | }); |
||
19 | |||
20 | factory(Sale::class, 'shop', 5)->make()->each(function (Sale $sale) { |
||
21 | Guitar::unsold()->first()->sale()->save($sale); |
||
22 | }); |
||
23 | } |
||
24 | } |
||
25 |
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.