Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel relation of relation

//Multiple relationships:
$books = Book::with('author', 'publisher')->get();

//Nested relationships:
$books = Book::with('author.contacts')->get();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #relation #relation
ADD COMMENT
Topic
Name
7+9 =