max_dev
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
1 replies
recordClasses() is only correctly applied to the first entry of a Table
https://filamentphp.com/docs/3.x/tables/advanced#custom-row-classes
Calling this fn in the table view leads to only style the first row correctly - every other row falls back to default even the returns are true
9 replies