| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 10 |
| Lines | 13 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | View Code Duplication | public function up() |
|
| 14 | { |
||
| 15 | Schema::create('users', function (Blueprint $table) { |
||
| 16 | $table->increments('id'); |
||
| 17 | $table->string('name')->nullable(); |
||
| 18 | $table->string('email')->unique(); |
||
| 19 | $table->string('password')->nullable(); |
||
| 20 | $table->string('avatar')->default('/img/user2-160x160.png'); |
||
| 21 | $table->string('nickname')->nullable(); |
||
| 22 | $table->rememberToken(); |
||
| 23 | $table->timestamps(); |
||
| 24 | }); |
||
| 25 | } |
||
| 26 | |||
| 37 |
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.