Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Laravel DB facade relations

$antiques = DB::table('antiques')
    ->join('images', 'images.antiques_id', '=', 'antiques.id')
    ->latest()
    ->limit(20)
    ->get(['antiques.*', 'images.path']);
Source by laracasts.com #
 
PREVIOUS NEXT
Tagged: #Laravel #DB #facade #relations
ADD COMMENT
Topic
Name
9+1 =