Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
13 | public function up() |
||
14 | { |
||
15 | 9 | Schema::create('league_admins', function(Blueprint $table) |
|
16 | { |
||
17 | 9 | $table->increments('id'); |
|
18 | 9 | $table->integer('league_id')->unsigned(); |
|
19 | 9 | $table->integer('user_id')->unsigned(); |
|
20 | 9 | $table->timestamps(); |
|
21 | |||
22 | 9 | $table->foreign('league_id')->references('id')->on('leagues')->onUpdate('cascade')->onDelete('cascade'); |
|
23 | 9 | $table->foreign('user_id')->references('id')->on('users')->onUpdate('cascade')->onDelete('cascade'); |
|
24 | 9 | }); |
|
25 | 9 | } |
|
26 | |||
38 |
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.