ded7978
Action after "Create"
class CreateSending extends CreateRecord
{
protected static string $resource = SendingResource::class;
protected function getCreateFormAction(): \Filament\Actions\Action
{
return parent::getCreateFormAction()->mutateFormDataUsing(function (array $data): array {
$data['title'] = 'mama';
return $data;
});
}
13 replies