Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | public function up(): void |
||
18 | { |
||
19 | Schema::create(config('rinvex.categories.tables.categories'), function (Blueprint $table) { |
||
20 | // Columns |
||
21 | $table->increments('id'); |
||
22 | $table->string('slug'); |
||
23 | $table->{$this->jsonable()}('name'); |
||
24 | $table->{$this->jsonable()}('description')->nullable(); |
||
25 | NestedSet::columns($table); |
||
26 | $table->timestamps(); |
||
27 | $table->softDeletes(); |
||
28 | |||
29 | // Indexes |
||
30 | $table->unique('slug'); |
||
31 | }); |
||
32 | } |
||
33 | |||
58 |