Pre-fetching an Eloquent model from a relationship Select to use in Closures
Hello,
In my Resource, I have a Form with a Select component, roughly as such:
I know that I can call
In my Resource, I have a Form with a Select component, roughly as such:
I know that I can call
RelatedModel::find() with the id to fetch it in the closure, but I was wondering if there was a way to pre? eager? load the selected related model instance so that afterStateUpdated() doesn't have to?