Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | public function up() |
||
18 | { |
||
19 | Schema::create(config('database.translations.table'), function (Blueprint $table) { |
||
20 | $table->increments('id'); |
||
21 | $table->string('namespace')->nullable(); |
||
22 | $table->string('group')->nullable(); |
||
23 | $table->string('key')->nullable(); |
||
24 | $table->text('values')->nullable(); |
||
25 | $table->timestamps(); |
||
26 | $table->unique(['namespace', 'group', 'key']); |
||
27 | }); |
||
28 | } |
||
29 | |||
40 |
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.