Souhail Bouaouiss
Souhail Bouaouiss
FFilament
Created by Souhail Bouaouiss on 3/14/2024 in #❓┊help
MutateRecordDataUsing
I am trying to fill two inputs in a form before starting to edit but the mutateRecordDataUsing seems to not committing any changes. I have tried to just see if I access the hook using dd('here') but it seems like I never access it . This is my code Tables\Actions\EditAction::make()->mutateRecordDataUsing(function (array $data): array { $prix = DB::table('com_srv_prices') ->where('srv_id', $data['id']) ->value('mnt_ttc'); $tva = DB::table('com_srv_prices') ->where('srv_id', $data['id']) ->value('tva'); $data['tva'] = $tva; $data['prix'] = $prix; return $data; }) ])
2 replies
FFilament
Created by Souhail Bouaouiss on 3/6/2024 in #❓┊help
Setting an input value from outside the repeater?
I need to set some input's values from outside the repeater using afterStateUpdated but I can not get to them . I know that from inside I should add ../../
4 replies