Before createNewEntry ask for a related entry first
I want to create a function which opens a modal before the CreateAction of a Model in order to select a Customer first, before i can create the Booking.
So i have an db column called 'customer_id' and it should be filled by the User BEFORE starting the creation process, because otherwise i get an error due to the depenant information can't be called, because the 'customer_id' field is empty
The relevant code for the error:
App\Filament\Resources\BookingResource::App\Filament\Resources{closure}(): Argument #1 ($record) must be of type App\Models\Booking, null given, called in /var/www/html/vendor/filament/support/src/Concerns/EvaluatesClosures.php on line 35
0 Replies