safriansah

ravel-auth-mig-profile

Oct 18th, 2020
485
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class CreateProfileTable extends Migration
  2. {
  3.     /**
  4.      * Run the migrations.
  5.      *
  6.      * @return void
  7.      */
  8.     public function up()
  9.     {
  10.         Schema::create('profile', function (Blueprint $table) {
  11.             $table->id();
  12.             $table->bigInteger('id_user');
  13.             $table->string('fullname');
  14.             $table->string('email')->unique();
  15.             $table->string('phone')->unique();
  16.             $table->timestamps();
  17.         });
  18.     }
  19.  
  20.     /**
  21.      * Reverse the migrations.
  22.      *
  23.      * @return void
  24.      */
  25.     public function down()
  26.     {
  27.         Schema::dropIfExists('profile');
  28.     }
  29. }
RAW Paste Data