My relationships is something like:
player
sub
something
sub-2
sub-3
something
foobar
sub-4
I can get player by id with its sub like this:
Player::with('sub.something','sub-2','sub-3.something.foobar','sub-4')->find($id);
However I had to specify each 'with' relationship manually. Is it possible to just get everything on the child relationship (hasMany/hasOne) in one query? Something like:
Player::with(everything())->find($id);
with
s to a builder you could easily do it – lagbox