| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | public function up() |
||
| 9 | { |
||
| 10 | Schema::create('regencies', function(Blueprint $table) { |
||
| 11 | $table->increments('id'); |
||
| 12 | $table->integer('province_id')->unsigned()->nullable()->index(); |
||
| 13 | $table->string('name', 191)->index(); |
||
| 14 | $table->timestamps(); |
||
| 15 | $table->softDeletes(); |
||
| 16 | }); |
||
| 17 | } |
||
| 18 | |||
| 23 | } |
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.