| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | public function up() |
||
| 19 | { |
||
| 20 | Schema::create('posts', function (Blueprint $table) { |
||
| 21 | $table->increments('id'); |
||
| 22 | $table->string('title'); |
||
| 23 | $table->string('subtitle')->nullable(); |
||
| 24 | $table->string('slug')->nullable(); |
||
| 25 | $table->string('dummy')->nullable(); |
||
| 26 | $table->integer('author_id')->nullable(); |
||
| 27 | $table->softDeletes(); |
||
| 28 | }); |
||
| 29 | } |
||
| 30 | |||
| 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.