Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

concat and search in laravel eloquent

concat() function using laravel update query
concat and search in laravel eloquent
$query->where(DB::raw("CONCAT(`first_name`,' ',`last_name`)"), 'like', '%' . request('filter') . '%');
 
PREVIOUS NEXT
Tagged: #concat #search #laravel #eloquent
ADD COMMENT
Topic
Name
5+8 =