eager loading question / issue ?
I've got this :
$location = \App\Location::find($location_id)->with('items','items.vendors')->get();
but its not using the find($location_id) and its returning all locations collections in the database. if I drop everything starting at ->with, it returns just a single location collection.
Am I doing something wrong with the syntax?
Want to reply to this thread?Login with github.