Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public function up() |
||
28 | { |
||
29 | Schema::create(config('rinvex.fort.tables.roles'), function (Blueprint $table) { |
||
30 | // Columns |
||
31 | $table->increments('id'); |
||
32 | $table->json('name'); |
||
33 | $table->string('slug'); |
||
34 | $table->json('description')->nullable(); |
||
35 | $table->timestamps(); |
||
36 | $table->softDeletes(); |
||
37 | |||
38 | // Indexes |
||
39 | $table->unique('slug'); |
||
40 | |||
41 | // Engine |
||
42 | $table->engine = 'InnoDB'; |
||
43 | }); |
||
44 | } |
||
45 | |||
56 |
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.