Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Laravel - Query Builder Left join

 $result = DB::table('pos_cash_register_open')
            ->select('pos_cash_register_open.outlet_id','pos_outlets.*')
            ->leftjoin('pos_outlets', 'pos_cash_register_open.outlet_id', '=', 'pos_outlets.id')
            ->groupBy('pos_cash_register_open.outlet_id')
            ->get();
Source by laracasts.com #
 
PREVIOUS NEXT
Tagged: #Laravel #Query #Builder #Left #join
ADD COMMENT
Topic
Name
6+4 =