->hintAction(
EditAction::make('updateCustomer')
->record(fn($record) => $record->customer) // When I use "$record", I get "Allowed memory size of 2147483648 bytes exhausted, at Concerns\\EvaluatesClosures.php:32"
// ->record(fn() => Customer::first()) // I do not get any error with this line.
->schema(CustomerForm::configure(\Filament\Schemas\Schema::make())->getComponents())
)
->hintAction(
EditAction::make('updateCustomer')
->record(fn($record) => $record->customer) // When I use "$record", I get "Allowed memory size of 2147483648 bytes exhausted, at Concerns\\EvaluatesClosures.php:32"
// ->record(fn() => Customer::first()) // I do not get any error with this line.
->schema(CustomerForm::configure(\Filament\Schemas\Schema::make())->getComponents())
)