Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 4 | ||
Bugs | 2 | Features | 0 |
1 | <?php |
||
11 | public function up() |
||
12 | { |
||
13 | Capsule::schema()->create('users', function($table) |
||
14 | { |
||
15 | $table->increments('id'); |
||
16 | $table->string('first_name'); |
||
17 | $table->string('last_name'); |
||
18 | $table->string('username')->unique()->nullable(); |
||
19 | $table->string('mobile')->unique(); |
||
20 | $table->string('email')->unique()->nullable(); |
||
21 | $table->string('api_token'); |
||
22 | $table->rememberToken(); |
||
23 | $table->timestamps(); |
||
24 | }); |
||
34 | } |