laravel elocuente ansiosa carga múltiples relaciones anidadas
Lo que dice laravel:
$books = App\Book::with('author.contacts')->get();
Lo que necesito es algo como esto
$books = App\Book::with('author[contacts,publishers]')->get();
Donde ansiamos cargar múltiples relaciones dentro de una relación.
Es esto posible?
24
Author: DrivingInsanee, 2016-02-18
1 answers
Puedes hacer
$books = App\Book::with('author.contacts','author.publishers')->get();
52
Author: oseintow,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-02-18 19:46:20
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-02-18 19:46:20