Answers for "eloquent join in multiple connections"

PHP
0

laravel eloquent multiple join

$users = User::join('posts', 'posts.user_id', '=', 'users.id')
              ->join('comments', 'comments.post_id', '=', 'posts.id')
              ->get(['users.*', 'posts.descrption']);
Posted by: Guest on August-08-2021

Browse Popular Code Answers by Language