Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 10 |
Ratio | 100 % |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
13 | public function run() |
||
14 | { |
||
15 | Capsule::schema()->dropIfExists('leagues'); |
||
16 | Capsule::schema()->create('leagues', function (Blueprint $table) { |
||
17 | $table->increments('id'); |
||
18 | $table->string('name'); |
||
19 | $table->unsignedTinyInteger('teams')->default(2); |
||
20 | $table->timestamps(); |
||
21 | }); |
||
22 | } |
||
23 | } |
||
24 |
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.