Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | public function up(): void |
||
17 | { |
||
18 | Schema::create(config('cortex.auth.tables.socialites'), function (Blueprint $table) { |
||
19 | // Columns |
||
20 | $table->increments('id'); |
||
21 | $table->morphs('user'); |
||
22 | $table->string('provider'); |
||
23 | $table->string('provider_uid'); |
||
24 | $table->timestamps(); |
||
25 | |||
26 | // Indexes |
||
27 | $table->unique(['provider', 'provider_uid']); |
||
28 | }); |
||
29 | } |
||
30 | |||
41 |
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.