Advertisement
safriansah

ravel-auth-mig-user

Oct 18th, 2020
968
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.58 KB | None | 0 0
  1. class CreateUsersTable extends Migration
  2. {
  3.     /**
  4.      * Run the migrations.
  5.      *
  6.      * @return void
  7.      */
  8.     public function up()
  9.     {
  10.         Schema::create('users', function (Blueprint $table) {
  11.             $table->id();
  12.             $table->string('username')->unique();
  13.             $table->text('password');
  14.             $table->boolean('status');
  15.             $table->timestamps();
  16.         });
  17.     }
  18.  
  19.     /**
  20.      * Reverse the migrations.
  21.      *
  22.      * @return void
  23.      */
  24.     public function down()
  25.     {
  26.         Schema::dropIfExists('users');
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement