Conditions | 1 |
Paths | 1 |
Total Lines | 23 |
Code Lines | 19 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function up() |
||
15 | { |
||
16 | Schema::create('people', function (Blueprint $table) { |
||
17 | $table->increments('id'); |
||
18 | $table->string('username'); |
||
19 | $table->string('email'); |
||
20 | $table->string('tsi'); |
||
21 | $table->date('birth_date'); |
||
22 | $table->string('name'); |
||
23 | $table->string('dni'); |
||
24 | $table->string('location'); |
||
25 | $table->string('sex'); |
||
26 | $table->integer('telephone'); |
||
27 | $table->integer('mobile_phone'); |
||
28 | $table->integer('first_surname'); |
||
29 | $table->integer('second_surname'); |
||
30 | $table->integer('personal_email'); |
||
31 | $table->integer('postal_code'); |
||
32 | |||
33 | $table->integer('user_id')->unsigned()->nullable(); |
||
34 | $table->timestamps(); |
||
35 | }); |
||
36 | } |
||
37 | |||
48 |
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.