Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

left join laravel

$users = DB::table('users')
            ->leftJoin('posts', 'users.id', '=', 'posts.user_id')
            ->get();

$users = DB::table('users')
            ->rightJoin('posts', 'users.id', '=', 'posts.user_id')
            ->get();
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #left #join #laravel
ADD COMMENT
Topic
Name
8+5 =