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