I have some values that are set by default.
Schema::create('users', function (Blueprint $table) {
$table->uuid('id')->primary()->default(Str::uuid());
$table->string('name');
$table->text('biography')->nullable();
$table->string('email')->unique();
$table->string('password');
$table->enum('role', ['STANDARD', 'PRO', 'ADMIN'])->default('STANDARD');
$table->boolean('active')->default(false);
$table->timestamps();
});
when I create an instance of the model the role enum is null. I want the field to be set.
Any thoughts?