Я попытался установить логическое значение для статуса, но обнаружил, что столбец «статус» не может быть пустым. Что я должен делать? Ниже приведен код, который я установил для создания пользовательской таблицы.
public function up()
{
Schema::create('users', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('email')->unique();
$table->string('password');
$table->string('role')->nullable();
$table->boolean('status');
$table->string('address')->nullable();
$table->string('city')->nullable();
$table->string('postal_code')->nullable();
$table->string('phone')->nullable();
$table->rememberToken();
$table->timestamps();
});
}