Must be using MySQL 8.0 or greater due to nullable json column.
- Clone this repo
composer install
- Clone
.env.example
, set up your database creds php artisan migrate
php artisan make:filament-user
- Login at
/admin/login
- Go to Post resource
- Create a post with all fields filled in - Title, Body, Category, Author
- Check database has all these fields
- Go to
App\Filament\Resources\PostResource
- Remove select options so you are left with:
Forms\Components\Select::make('category')
->options([]),
and
Forms\Components\Select::make('author')
->options([]),
- Now go back to the post you created at
/admin/posts/1/edit
- Check no options exist in either select
- Save resource
- See that the database values have not changed for
category
and theauthor
json.
This is not expected behaviour. If values no longer exist this should save the fields as null, just as when a user selects the placeholder manually.