Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
34 | public function up() |
||
35 | { |
||
36 | Schema::create($this->authenticationProvidersTable, function (Blueprint $table) { |
||
37 | $table->increments('id'); |
||
38 | $table->integer('user_id')->unsigned(); |
||
39 | $table->foreign('user_id')->references('id')->on('users') |
||
40 | ->onDelete('cascade') |
||
41 | ->onUpdate('cascade'); |
||
42 | $table->string('provider_user_id'); |
||
43 | $table->string('provider'); |
||
44 | $table->string('access_token'); |
||
45 | $table->string('avatar'); |
||
46 | $table->string('name')->nullable(); |
||
47 | $table->string('nickname')->nullable(); |
||
48 | $table->timestamps(); |
||
49 | }); |
||
50 | } |
||
51 | |||
65 |
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.