maybe, kind of this ?
$user = App\User::find(1);
foreach ($user->interests as $interest) { foreach ($interest->pages as $page) { // } }
note : you already connected each table using relationship function in Model : https://laravel.com/docs/5.3/eloquent-relationships
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community