since you want to get all the data in to an array at once, try something like this
Match::join('sales', 'matches.countryId', 'sales.country')->where('matches.PeopleID', '=', $id)->get();
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community