Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | public function up(): void |
||
17 | { |
||
18 | Schema::create(config('session.table'), function (Blueprint $table) { |
||
19 | // Columns |
||
20 | $table->string('id'); |
||
21 | $table->nullableMorphs('user'); |
||
22 | $table->string('ip_address', 45)->nullable(); |
||
23 | $table->text('user_agent')->nullable(); |
||
24 | $table->text('payload'); |
||
25 | $table->integer('last_activity'); |
||
26 | |||
27 | // Indexes |
||
28 | $table->unique('id'); |
||
29 | }); |
||
30 | } |
||
31 | |||
42 |
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.