Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function up() |
||
15 | { |
||
16 | Schema::create('feature_' . str_singular(config('multi-tenant.table_name')), function (Blueprint $table) { |
||
17 | $table->increments('id'); |
||
18 | $table->integer('feature_id')->index()->unsigned(); |
||
19 | $table->integer('tenant_id')->index()->unsigned(); |
||
20 | $table->timestamps(); |
||
21 | }); |
||
22 | } |
||
23 | |||
34 |
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.