Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function up() |
||
15 | { |
||
16 | Schema::create(config('cortex.fort.tables.roles'), function (Blueprint $table) { |
||
17 | // Columns |
||
18 | $table->increments('id'); |
||
19 | $table->string('name', 150); |
||
20 | $table->{$this->jsonable()}('title')->nullable(); |
||
21 | $table->integer('level')->unsigned()->nullable(); |
||
22 | $table->integer('scope')->nullable(); |
||
23 | $table->auditable(); |
||
24 | $table->timestamps(); |
||
25 | |||
26 | // Indexes |
||
27 | $table->index(['scope']); |
||
28 | $table->unique(['name', 'scope'], 'roles_name_unique'); |
||
29 | }); |
||
30 | } |
||
31 | |||
54 |
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.