Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel eloquent multiple join

$users = User::join('posts', 'posts.user_id', '=', 'users.id')
              ->join('comments', 'comments.post_id', '=', 'posts.id')
              ->get(['users.*', 'posts.descrption']);
Source by www.tutsmake.com #
 
PREVIOUS NEXT
Tagged: #laravel #eloquent #multiple #join
ADD COMMENT
Topic
Name
8+9 =