| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 4 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 14 | public function up() |
||
| 15 | { |
||
| 16 | |||
| 17 | Schema::create('Comment', function (Blueprint $table) { |
||
| 18 | $table->increments('id'); |
||
| 19 | $table->integer('parent')->unsigned()->nullable(); |
||
| 20 | $table->text('comment'); |
||
| 21 | |||
| 22 | $table->morphs("entity"); |
||
| 23 | $table->timestamps(); |
||
| 24 | $table->softDeletes(); |
||
| 25 | $table->creation(); |
||
| 26 | |||
| 27 | $table->foreign('parent')->references('id')->on('Comment'); |
||
| 28 | }); |
||
| 29 | |||
| 30 | } |
||
| 31 | |||
| 45 |
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.