combine 2 columns search query laravel

Solutions on MaxInterview for combine 2 columns search query laravel by the best coders in the world

showing results for - "combine 2 columns search query laravel"
Brea
15 Oct 2016
1public function index()
2{
3    $users = User::select("*", DB::raw("CONCAT(users.first_name,' ',users.last_name) as full_name"))
4        ->get();
5  
6    return view('home', compact('users'));
7}