Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | public function up() |
||
17 | { |
||
18 | Schema::create(config('rinvex.fort.tables.abilities'), function (Blueprint $table) { |
||
19 | // Columns |
||
20 | $table->increments('id'); |
||
21 | $table->string('action'); |
||
22 | $table->string('resource'); |
||
23 | $table->string('policy')->nullable(); |
||
24 | $table->{$this->jsonable()}('name'); |
||
25 | $table->{$this->jsonable()}('description')->nullable(); |
||
26 | $table->timestamps(); |
||
27 | $table->softDeletes(); |
||
28 | |||
29 | // Indexes |
||
30 | $table->unique(['action', 'resource']); |
||
31 | }); |
||
32 | } |
||
33 | |||
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.