techenby
Can I have dynamic columns or inputs in resource?
Also here's my repo if anyone's interested: https://github.com/SGDInstitute/enterprise/blob/main/app/Filament/Resources/EventResource/RelationManagers/ProposalsRelationManager.php
19 replies
Can I have dynamic columns or inputs in resource?
I was able to accomplish what I wanted, but I'm not super happy with it.
I'm using the
uri
of the request to figure out what model I'm looking at and fetch what I need.
Then in the table I have this:
19 replies
Can I have dynamic columns or inputs in resource?
I can iterate over each item in the
answers
column or iterate over the id
s grabbed from the Survey. But that still leads me to two questions:
1: how to foreach
or map
over a value to get n
number of columns
2. How to get the $record
or $ownerRecord
to pass into the foreach
or map
19 replies
Can I have dynamic columns or inputs in resource?
Here's a gist with example data: https://gist.github.com/techenby/eec1531522f1c6f37819c0915e1be9bf
19 replies