/** * @param Blueprint $table * @return Blueprint */ public static function _schema_LoginableTrait(Blueprint $table) { $table->string('password')->nullable(); $table->rememberToken('remember_token'); $table->dateTime('last_login')->nullable(); $table->string('last_ip')->nullable(); $table->integer('fails')->default(0); $table->enum('is_banned', [0, 1])->default(0); $table->text('ban_reason')->nullable(); $table->enum('locked_screen', [0, 1])->default(0); return $table; }
private function ifNoUsersTable(Blueprint $table) { $table->increments('id'); $table->string('first_name'); $table->string('last_name'); $table->string('email')->unique(); $table->string('avatar'); $table->string('provider'); $table->string('provider_id')->unique(); $table->longText('provider_token'); $table->string('password', 60)->nullable(); $table->boolean('verified')->default(false); $table->string('gender')->nullable(); $table->string('link'); $table->rememberToken(); $table->timestamps(); }