Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | public function up(): void |
||
17 | { |
||
18 | Schema::create(config('cortex.auth.tables.guardians'), function (Blueprint $table) { |
||
19 | // Columns |
||
20 | $table->increments('id'); |
||
21 | $table->string('username'); |
||
22 | $table->string('password'); |
||
23 | $table->rememberToken(); |
||
24 | $table->string('email'); |
||
25 | $table->boolean('is_active')->default(true); |
||
26 | $table->timestamp('last_activity')->nullable(); |
||
27 | $table->auditableAndTimestamps(); |
||
28 | $table->softDeletes(); |
||
29 | |||
30 | // Indexes |
||
31 | $table->unique('email'); |
||
32 | $table->unique('username'); |
||
33 | }); |
||
34 | } |
||
35 | |||
46 |
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.