Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
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 | $table->timestamps(); |
||
22 | $table->softDeletes(); |
||
23 | $table->creation(); |
||
24 | |||
25 | $table->foreign('parent')->references('id')->on('Comment'); |
||
26 | }); |
||
27 | |||
28 | } |
||
29 | |||
43 |
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.