Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

left join in laravel

$data = DB::table('post')
  ->leftJoin('category', 'post.category', '=', 'category.id')
  ->leftJoin('users', 'post.author', '=', 'users.id')
  ->orderBy('created_at', 'DESC')
  ->get();
 
PREVIOUS NEXT
Tagged: #left #join #laravel
ADD COMMENT
Topic
Name
8+7 =