Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | public function up() |
||
17 | { |
||
18 | Schema::create(config('session.table'), function (Blueprint $table) { |
||
19 | // Columns |
||
20 | $table->string('id'); |
||
21 | $table->integer('user_id')->unsigned()->nullable(); |
||
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 | $table->foreign('user_id')->references('id')->on(config('rinvex.fort.tables.users')) |
||
30 | ->onDelete('cascade')->onUpdate('cascade'); |
||
31 | }); |
||
32 | } |
||
33 | |||
44 |
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.