sqrt
sqrt
FFilament
Created by sqrt on 4/20/2023 in #❓┊help
Select once within Repeater
ok, I did not ask. It seemed to simple to work, but it does in fact. This system is briliant.
8 replies
FFilament
Created by sqrt on 4/20/2023 in #❓┊help
Select once within Repeater
New issue – in order to add the relations I do return Group::class; in getFormModel to be able to get the hydration data. But in that case the Repeater wont fill. Using return $this->group passed only the existing relations do the submit(). Is there a way to fill the repeater? I do not want to split add/edit functionalities.
8 replies
FFilament
Created by sqrt on 4/20/2023 in #❓┊help
Select once within Repeater
$tempOccupancy = array_diff($this->occupancyArray, [$state]);
return VentUnit::where('user_id', Auth::user()->id)->whereNotIn('id', $tempOccupancy)->pluck('name', 'id');
$tempOccupancy = array_diff($this->occupancyArray, [$state]);
return VentUnit::where('user_id', Auth::user()->id)->whereNotIn('id', $tempOccupancy)->pluck('name', 'id');
this seems to do the trick
8 replies
FFilament
Created by sqrt on 4/20/2023 in #❓┊help
Select once within Repeater
So, the $get(‘../../repeatername’) gives me the complete list (array) per each iteration over "row". And I think the row should know its "current" id (the key) so I can construct proper query for others. Or am I missing something?
8 replies
FFilament
Created by sqrt on 4/20/2023 in #❓┊help
Select once within Repeater
Right, I assumed I can only pass array to options. Sources always should be read. Thanks again
8 replies
FFilament
Created by sqrt on 4/19/2023 in #❓┊help
Access repeater's data
Thanks!
13 replies
FFilament
Created by sqrt on 4/19/2023 in #❓┊help
Access repeater's data
I guess that will be saveRelationshipUsing...
13 replies
FFilament
Created by sqrt on 4/19/2023 in #❓┊help
Access repeater's data
One more thing. Since I do not want to create a record, just update the relation between existing entities by theirs' IDs, is it possible to overwrite the built-in query?
13 replies
FFilament
Created by sqrt on 4/19/2023 in #❓┊help
Access repeater's data
Awsome, Dan! Thank you very much 🙂
13 replies
FFilament
Created by sqrt on 4/19/2023 in #❓┊help
Access repeater's data
Yes, indeed
13 replies
FFilament
Created by sqrt on 4/19/2023 in #❓┊help
Access repeater's data
Suppose I want to create new records based on a form contents. For that common dehydration using getState() works for all the fields from the form except for these inside repeater. I suppse there should be some array of data, but cannot find it in docs.
13 replies