| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function up() |
||
| 15 | { |
||
| 16 | Schema::create(config('cortex.foundation.tables.import_records'), function (Blueprint $table) { |
||
| 17 | $table->increments('id'); |
||
| 18 | $table->string('resource'); |
||
| 19 | $table->{$this->jsonable()}('data')->nullable(); |
||
| 20 | $table->string('status')->default('init'); |
||
| 21 | $table->text('notes')->nullable(); |
||
| 22 | $table->timestamps(); |
||
| 23 | }); |
||
| 24 | } |
||
| 25 | |||
| 48 |
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.