laravel query relationship nested
return Event::with(['city.companies.persons' => function ($query) {
$query->select('id', '...');
}])->get();
0
10
return Event::with('city.companies.persons')->get();
Thank you!
10
0
Are there any code examples left?
New code examples in category PHP