Support the ongoing development of Laravel.io →
Database Queues
Last updated 2 years ago.
0
$query->where('col1', '>', '2');
$query->where('col2', '>', '2');

Or

$query->where(function($where)
{
  $where->where('col1', '>', '2');
  $where->where('col2', '>', '2');
});
Last updated 2 years ago.
0

I think you will have to use raw for this

http://laravel.com/docs/queries#raw-expressions

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

sirstyle sirstyle Joined 28 May 2014

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.