Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Lines | 12 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
14 | View Code Duplication | public function up() |
|
15 | { |
||
16 | Schema::create('features', function (Blueprint $table) { |
||
17 | $table->increments('id'); |
||
18 | $table->string('name')->index(); |
||
19 | $table->string('model'); |
||
20 | $table->string('label')->nullable(); |
||
21 | $table->text('description')->nullable(); |
||
22 | $table->boolean('auto_add')->default(false); |
||
23 | $table->timestamps(); |
||
24 | }); |
||
25 | } |
||
26 | |||
37 |
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.