1 | <?php |
||
16 | class CreateUsersTable extends Migration |
||
17 | { |
||
18 | /** |
||
19 | * Run the migrations. |
||
20 | */ |
||
21 | public function up() |
||
22 | { |
||
23 | Schema::create('users', function (Blueprint $table) { |
||
24 | $table->increments('id'); |
||
25 | $table->string('name'); |
||
26 | $table->string('email')->unique(); |
||
27 | $table->string('password'); |
||
28 | $table->rememberToken(); |
||
29 | $table->timestamps(); |
||
30 | }); |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * Reverse the migrations. |
||
35 | */ |
||
36 | public function down() |
||
37 | { |
||
38 | Schema::dropIfExists('users'); |
||
39 | } |
||
40 | } |
||
41 |