Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
12 | public function run() |
||
13 | { |
||
14 | $makes = collect([ |
||
15 | 'Acoustic Guitars', |
||
16 | 'Electric Lead Guitars', |
||
17 | 'Electro-acoustic Guitars', |
||
18 | 'Twelve-string Guitars', |
||
19 | 'Archtop Guitars', |
||
20 | 'Steel Guitars', |
||
21 | 'Resonator Guitars', |
||
22 | 'Bass Guitars', |
||
23 | 'Double-neck Guitars', |
||
24 | ]); |
||
25 | $makes->each(function ($name) { |
||
26 | factory(App\Make::class)->create(['name' => $name]); |
||
27 | }); |
||
28 | } |
||
29 | } |
||
30 |
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.