Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel query relationship nested

return Event::with(['city.companies.persons' => function ($query) {
    $query->select('id', '...');
}])->get();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #query #relationship #nested
ADD COMMENT
Topic
Name
3+6 =