| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function up() |
||
| 15 | { |
||
| 16 | Schema::create('tenant_user', function (Blueprint $table) { |
||
| 17 | $table->increments('id'); |
||
| 18 | $table->integer('tenant_id')->unsigned(); |
||
| 19 | $table->integer('user_id')->unsigned(); |
||
| 20 | $table->timestamps(); |
||
| 21 | |||
| 22 | $table->index('tenant_id', 'tenant_user_tenant_id_index'); |
||
| 23 | $table->index('user_id', 'tenant_user_user_id_index'); |
||
| 24 | }); |
||
| 25 | } |
||
| 26 | |||
| 37 |
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.