Support the ongoing development of Laravel.io →
posted 9 years ago
Eloquent

Hi guys!!

I need to do this query on eloquent:

Select * from my_table where field_a + field_b in (2,5,......);

where field_a and field_b are integer values. I searched the web, but I did not find any results;

Thanks!!

Last updated 2 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.

© 2025 Laravel.io - All rights reserved.