combine 2 columns search query laravel code example
Example: combine 2 columns search query laravel
public function index()
{
$users = User::select("*", DB::raw("CONCAT(users.first_name,' ',users.last_name) as full_name"))
->get();
return view('home', compact('users'));
}