Samer
How to expose table of ManageRelatedRecords to widget
inside the ListRecords class i just put this
protected static string $relationship = 'Profiles';
then in the widget i use
$profile = $this->getPageTableQuery()->getRelation('profiles')->count();
10 replies
how dynamically add form text Input or spatieTag into resource based on non related model
i've did little bit of change, I'm using select now instead of SpatietagsInput , and saving with afterSAve() and refill with AfterFill and its working now .
38 replies
Nest resources into sections in nav bar
maybe this ? https://filamentphp.com/docs/3.x/panels/resources/getting-started#grouping-resource-navigation-items
2 replies
how dynamically add form text Input or spatieTag into resource based on non related model
the weird thing with dynamic names for example
it saves correctly without doing any custom saving, but I need to find a way to be able to fill it on edit to fill the input with the current value.
not sure if i need to change this
in
38 replies
how dynamically add form text Input or spatieTag into resource based on non related model
Hi @pboivin Thanks for the tips, I managed to get it working using what you suggested
i did two arrays one for normal inputs and i copied the form schema to it,and one array filled from the loop to get the fields dynamically then i pass them both with array merge to form schema.
then
38 replies
how dynamically add form text Input or spatieTag into resource based on non related model
,ok for point #2 lets say this invoiceResource have like 3 tags type should be attached to each invoice, for example each invoice should be attached to A Project tag , A department tag and a user Tag , so in that Create/Edit in invoice Resource we need to dynamically have 3 input fields
38 replies