| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function up() |
||
| 15 | { |
||
| 16 | Schema::create('histories', function (Blueprint $table) { |
||
| 17 | $table->increments('id'); |
||
| 18 | $table->uuid('uuid')->unique(); |
||
| 19 | $table->string('content_type'); |
||
| 20 | $table->integer('content_id'); |
||
| 21 | $table->integer('workflow_id')->unsigned()->nullable(); |
||
| 22 | $table->integer('workflow_transition_id')->unsigned()->nullable(); |
||
| 23 | $table->integer('from_state'); |
||
| 24 | $table->integer('to_state'); |
||
| 25 | $table->integer('user_id'); |
||
| 26 | $table->text('message'); |
||
| 27 | $table->softDeletes(); |
||
| 28 | $table->timestamps(); |
||
| 29 | }); |
||
| 30 | } |
||
| 31 | |||
| 42 |
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.