I think "orWhereRaw" is what you are looking for:
$projects
->whereRAW("MATCH(name,description) AGAINST(? IN BOOLEAN MODE)",array($search))
->orWhereRAW('id IN (SELECT project_id FROM roles JOIN users ON user.id = roles.user_id WHERE MATCH(username, first_name, last_name) AGAINST(? IN BOOLEAN MODE))', array($search));
->orWhereRaw('...')
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community