Best practice to inject additional attributes into my Laravel model to persist in state

Hello, I have an Application model (paper form converted to digital) where I retreive extra attributes from an external table and append them to my model. Currently, after a preform an action on my Infolist page the extra attributes are lost on the page refresh when the action is called. So I'm retreiving them again with afterActionCalled(). This seems very inefficient as the same query is being called multiple times on same page. What is the best practice to append these extra attributes to my Infolist state?
1 Reply
Horizons
HorizonsOP12mo ago
When an action is fired on an infolist, does the model get refreshed from the database?
Want results from more Discord servers?
Add your server