| Conditions | 1 |
| Paths | 1 |
| Total Lines | 24 |
| Code Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function up() |
||
| 14 | { |
||
| 15 | Schema::create('categories', function (Blueprint $table) { |
||
| 16 | $table->increments('id'); |
||
| 17 | // nested sets fields |
||
| 18 | $table->unsignedInteger('parent_id')->nullable()->index(); |
||
| 19 | $table->unsignedInteger('lft')->nullable()->index(); |
||
| 20 | $table->unsignedInteger('rgt')->nullable()->index(); |
||
| 21 | $table->unsignedInteger('depth')->nullable(); |
||
| 22 | |||
| 23 | $table->string('title'); |
||
| 24 | $table->string('alias'); |
||
| 25 | $table->string('note')->nullable(); |
||
| 26 | $table->boolean('published')->default(false)->index(); |
||
| 27 | $table->boolean('authenticated')->default(false)->index(); |
||
| 28 | $table->integer('hits')->default(0); |
||
| 29 | $table->mediumText('description')->nullable(); |
||
| 30 | $table->text('parameters')->nullable(); |
||
| 31 | |||
| 32 | $table->unsignedInteger('created_by')->nullable()->index(); |
||
| 33 | $table->unsignedInteger('updated_by')->nullable()->index(); |
||
| 34 | $table->timestamps(); |
||
| 35 | }); |
||
| 36 | } |
||
| 37 | |||
| 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.