I wish to make a custom search on my site.
Here is MySQL Search:
SELECT * FROM
MyDB
.MyTable
WHERE (id
LIKE '%MySearch%' ORfirstname
LIKE '%MySearch%' ORlastname
LIKE '%MySearch%' ORaddress
LIKE '%MySearch%');
How can I get that search into my Laravel Controller??
$users = DB::table('MyTable')->where('firstname', 'MySearch')->get();
Thanks in advance !