whereBetween() takes a field and an array.
Is there a way to do a between on 2 fields with an input?
something like this:
$q2->whereBetween($date, 'date_1','date_2') //error
its supposed to be in an array like so:
$q2->whereBetween($date, [$date1, $date2 ]);
@zam3858 the op knows as they mentioned that as the first thing in the post.
It would appear they are looking to find out if there is a way to check 2 columns instead of 2 values.
lagbox said:
@zam3858 the op knows as they mentioned that as the first thing in the post.
It would appear they are looking to find out if there is a way to check 2 columns instead of 2 values.
oh my bad. blaming it on language barrier. :D
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community