📜  laravel eloquent multiple join with where 条件 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:22.907000             🧑  作者: Mango

代码示例2
$users = User::join('posts', 'posts.user_id', '=', 'users.id')
              ->join('comments', 'comments.post_id', '=', 'posts.id')
              ->get(['users.*', 'posts.descrption']);