I have a table called 'events' (model: Event) and this has many "shifts" (Model: Shift)
How do I only get events with a shift date from this year? Eg: Event::with('shifts')->future();
I found various info on whereDate etc but this seems to apply to the parent model rather than the children.
I can do basic joins etc in Eloquent but am struggling to find resources on more advanced queries so any help with where to go with that also welcome! I'm coming from Codeigniter...