Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | public function up() |
||
16 | { |
||
17 | $this->getSchema()->create('users', function($table) { |
||
18 | $table->increments('id'); |
||
19 | $table->string('login')->unique(); |
||
20 | $table->string('email')->unique(); |
||
21 | $table->string('password', 512); |
||
22 | $table->tinyInteger('role_id')->default(2); // 1 = onlyRead(same as guest), 2 = user, 3 = moder, 4 = adm |
||
23 | $table->string('approve_token', 128)->nullable()->default(null); |
||
24 | $table->timestamps(); |
||
25 | }); |
||
26 | parent::up(); |
||
27 | } |
||
47 | } |
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.