| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function up() |
||
| 18 | { |
||
| 19 | Schema::create('social_users', function (Blueprint $table) { |
||
| 20 | $table->increments('id'); |
||
| 21 | $table->integer('user_id')->unsigned(); |
||
| 22 | |||
| 23 | //Google Social id is so big than can not be stored in a BIGINT so varchar is used! |
||
| 24 | $table->string('social_id'); |
||
| 25 | $table->string('social_type'); |
||
| 26 | $table->string('nickname')->nullable(); |
||
| 27 | $table->string('name')->nullable(); |
||
| 28 | $table->string('email')->nullable(); |
||
| 29 | $table->string('avatar')->nullable(); |
||
| 30 | |||
| 31 | $table->json('meta'); |
||
| 32 | |||
| 33 | $table->timestamps(); |
||
| 34 | |||
| 35 | $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); |
||
| 36 | }); |
||
| 37 | } |
||
| 38 | |||
| 49 |
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.