Select field validation to accept Null Option

Upgrading from version 3, the select fields throw a validation error.

I would like for the user to be able to just save with the selectbox without any selection...

this is my code:


<?php
Select::make('payment_method')
                            ->nullable()
                            ->options([
                                'Cash'=>'Cash',
                                'Card'=>'Card',
                                'Cheque'=>'Cheque',
                                'BankTransfer'=>'Bank Transfer',
                                'PrePaymentPlan'=>'Pre-Payment Plan',
                                'ThirdParty'=>'Third Party', 
                                'Freebee' => 'Freebee',
                                'NA'=>'N/A']),

I suspect it must be something simple, but I'm out of ideas.

Filament
versions : * v4.3.1
Laravel
versions : * v12.42.0
image.png
Was this page helpful?