laravel-mongodb
laravel-mongodb copied to clipboard
schema default value not working
- Laravel-mongodb Version: 9
- PHP Version: 8
- Database Driver & Version: latest
Description:
Schema::create('my_doc', function (Blueprint $collection) {
$collection->id();
$collection->string('title')->default('test');
$collection->timestamps();
});
When a record is stored without a title value, the title field value is empty.