Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 12 |
Lines | 15 |
Ratio | 100 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | public function run() |
||
14 | { |
||
15 | Capsule::schema()->dropIfExists('league_teams'); |
||
16 | Capsule::schema()->create('league_teams', function (Blueprint $table) { |
||
17 | $table->increments('id'); |
||
18 | $table->integer('league_id'); |
||
19 | $table->integer('team_id'); |
||
20 | $table->unsignedTinyInteger('points')->default(0); |
||
21 | $table->unsignedTinyInteger('played')->default(0); |
||
22 | $table->unsignedTinyInteger('won')->default(0); |
||
23 | $table->unsignedTinyInteger('draw')->default(0); |
||
24 | $table->unsignedTinyInteger('lost')->default(0); |
||
25 | $table->timestamps(); |
||
26 | }); |
||
27 | } |
||
28 | } |
||
29 |
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.