Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function up() |
||
15 | { |
||
16 | Schema::create('fieldables', function (Blueprint $table) { |
||
17 | $table->unsignedInteger('field_id')->index(); |
||
18 | $table->unsignedInteger('field_value_id')->index(); |
||
19 | $table->string('fieldable_type')->index(); |
||
20 | $table->unsignedInteger('fieldable_id')->index(); |
||
21 | |||
22 | $table->unique(['field_id', 'field_value_id', 'fieldable_type', 'fieldable_id']); |
||
23 | }); |
||
24 | } |
||
25 | |||
36 |
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.