Answers for "laravel find row by other column value"

PHP
5

get single column value in laravel eloquent

Vehicle::find(3)->value('register_number');
Posted by: Guest on September-23-2020
3

laravel get single column value

$items = DB::table('items')
             ->select('id', 'ref_code', 'name', 'price')
             ->where('ref_code','=', $request->ref_code)
             ->first();
Posted by: Guest on October-04-2020

Code answers related to "laravel find row by other column value"

Browse Popular Code Answers by Language