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