Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 13 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
10 | View Code Duplication | public function up() |
|
11 | { |
||
12 | Schema::create('social_accounts', function(Blueprint $table) { |
||
13 | $table->increments('id'); |
||
14 | $table->integer('user_id')->unsigned()->nullable()->index(); |
||
15 | $table->string('provider')->index(); |
||
16 | $table->string('provider_user_id'); |
||
17 | $table->text('provider_user_info')->nullable(); |
||
18 | $table->timestamps(); |
||
19 | |||
20 | $table->foreign('user_id')->references('id')->on('users')->onDelete('CASCADE')->onUpdate('CASCADE'); |
||
21 | }); |
||
22 | } |
||
23 | |||
34 |
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.