Support the ongoing development of Laravel.io →
Database Eloquent
Last updated 2 years ago.
0

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('...')
Last updated 9 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.