I am trying to write this MySQL query in Laravel:

`SELECT * FROM users WHERE CONCAT(firstName, ' ', lastName) LIKE '%John%'`

The idea being that records with either a `firstName` or a `lastName` of `John` will be returned

Things I have tried:

.

`$users = User::whereRaw("(CONCAT(users.firstName, ' ', users.lastName) like '%John%')");`

**Error** `The Response content must be a string or object implementing __toString(), "boolean" given.`

.

`$users = User::whereRaw("(CONCAT(users.firstName, ' ', users.lastName) like '%?%')",[$search])->get();`

**Returns `[]`**

.

`$users = User::whereRaw("(CONCAT(users.firstName, ' ', users.lastName) like ?)",[$search])->get();`

**Returns `[]`**