PHP inside of HtmlString?
I am trying to include the domain within the HtmlString but its a modal from a table. So each modal has its only domain.
If Vanilla PHP this is easily doable but that doesnt seem to be the case.
7 Replies
You need to do it as a callback so you can inject the record then return the html string from the closure.
Can you give me an example of this?
Solution
This assume the modal has a record though.
Not sure what action you are calling or where.
Thank you @awcodes - I am new to filament from vanilla PHP so it is taking alot for me to wrap my head around all of these shorthand codes.
No worries. Hang in there it’ll get easier.