Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function up() |
||
15 | { |
||
16 | Schema::create('fighters_groups', function (Blueprint $table) { |
||
17 | $table->increments('id'); |
||
18 | $table->integer('championship_id')->unsigned()->index(); |
||
19 | $table->tinyInteger('area'); |
||
20 | $table->tinyInteger('order'); |
||
21 | $table->timestamps(); |
||
22 | $table->engine = 'InnoDB'; |
||
23 | |||
24 | $table->foreign('championship_id') |
||
25 | ->references('id') |
||
26 | ->onUpdate('cascade') |
||
27 | ->on('championship') |
||
28 | ->onDelete('cascade'); |
||
29 | }); |
||
30 | } |
||
31 | |||
44 |
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.