Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel get single column value

$items = DB::table('items')
             ->select('id', 'ref_code', 'name', 'price')
             ->where('ref_code','=', $request->ref_code)
             ->first();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #single #column
ADD COMMENT
Topic
Name
4+1 =