| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 12 |
| 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 | $table->integer('social_id')->unsigned(); |
||
| 24 | $table->string('social_type'); |
||
| 25 | $table->string('nickname')->nullable(); |
||
| 26 | $table->string('name'); |
||
| 27 | $table->string('email'); |
||
| 28 | $table->string('avatar')->nullable(); |
||
| 29 | |||
| 30 | $table->timestamps(); |
||
| 31 | |||
| 32 | $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); |
||
| 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.