Conditions | 1 |
Paths | 1 |
Total Lines | 31 |
Code Lines | 26 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function up() |
||
15 | { |
||
16 | Schema::create( |
||
17 | 'members', |
||
18 | function (Blueprint $table) { |
||
19 | $table->increments('id'); |
||
20 | $table->string('email'); |
||
21 | $table->string('password', 65); |
||
22 | $table->string('first_name'); |
||
23 | $table->string('last_name'); |
||
24 | $table->string('faculty'); |
||
25 | $table->string('field_of_study'); |
||
26 | $table->integer('year_of_graduation'); |
||
27 | $table->string('photo')->nullable(); |
||
28 | $table->date('birthday'); |
||
29 | $table->string('facebook')->nullable(); |
||
30 | $table->string('twitter')->nullable(); |
||
31 | $table->string('google_plus')->nullable(); |
||
32 | $table->string('phone')->nullable(); |
||
33 | $table->string('website')->nullable(); |
||
34 | $table->boolean('board_member')->default(false); |
||
35 | $table->string('position_title')->nullable(); |
||
36 | $table->boolean('approved')->default(false); |
||
37 | $table->boolean('alumni')->default(false); |
||
38 | $table->string('remember_token')->nullable(); |
||
39 | $table->timestamps(); |
||
40 | |||
41 | $table->unique('email'); |
||
42 | } |
||
43 | ); |
||
44 | } |
||
45 | |||
56 |
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.