You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Has anyone used Laravel-Query-Builder with route model binding? Currently, I'm using route implicit model binding to load the initial model. Then if the request includes any Laravel-Query-Builder parameters, I re-fetch the model by the loaded model's ID.
It seems like there should be a cleaner way to do this. I'm thinking of possibly using explicit model binding.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Has anyone used Laravel-Query-Builder with route model binding? Currently, I'm using route implicit model binding to load the initial model. Then if the request includes any Laravel-Query-Builder parameters, I re-fetch the model by the loaded model's ID.
It seems like there should be a cleaner way to do this. I'm thinking of possibly using explicit model binding.
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions