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