如何在laravel 5.3中使用eloquent进行以下查询
SELECT *
FROM `CONTACTS`
WHERE CONCAT(`title`, '', `fullname`, ' ', `phone`, ' ', `email`) LIKE '%search%'
AND `status` = 'Active'
AND `statusby` = 'username'
我试过这个但是没有用
Contact::select()
->where(DB::raw("CONCAT(`title`, '', `fullname`, ' ', `phone`, ' ', `email`) LIKE '%search%'
AND `status` = 'Active' AND `statusby` = 'username'"))
->get();