id(); $table->string('name'); $table->string('username')->unique(); $table->unsignedBigInteger('parent_id')->default(1); $table->boolean('is_superuser')->default(0); $table->boolean('is_banned')->default(0); $table->enum('two_factor_status', ['off', 'sms', 'email']); $table->string('mobile'); $table->string('email'); $table->timestamp('email_verified_at')->nullable(); $table->string('password'); $table->rememberToken(); $table->timestamps(); $table->softDeletes(); $table->foreign('parent_id') ->references('id') ->on('users'); }); } /** * Reverse the migrations. * * @return void */ public function down() { // It's in laratrust_setup_table because has relations.. } }