Solution to this question is, DRUM ROLL, TA-DA!
$authors = Authors::whereIn("id", array(1))->with('books')->get()->toJson();
print_r($authors);
This allows me to display the author and group there books in a json format. yay me!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community