Moe Tarhini
How Can I Stop the Relationship from Auto-Saving After Submitting the Form
Table Action :
Tables\Actions\EditAction::make()
->before(function (array $data, Domain $record, $action): array {
dd($record->services);
}); Inside the From : Select::make('services')->native(false)->preload() ->helperText(fn (Get $get, $livewire) => renderHelperTextDomainForm::renderHelperTextForInactiveServices($livewire, $get('services'))) ->relationship(name: 'services', titleAttribute: 'name') ->dehydrated() I really don't know what I'm doing wrong, after the dd($record->services) is launched the services record is already has been updated in the db !
}); Inside the From : Select::make('services')->native(false)->preload() ->helperText(fn (Get $get, $livewire) => renderHelperTextDomainForm::renderHelperTextForInactiveServices($livewire, $get('services'))) ->relationship(name: 'services', titleAttribute: 'name') ->dehydrated() I really don't know what I'm doing wrong, after the dd($record->services) is launched the services record is already has been updated in the db !
4 replies