Answers for "where given single date check with in two date columns laravel"

PHP
0

check if date between two dates laravel eloquent

//get or exist data between two dates
return Set::where('type', $type)
            ->whereDate('active_start', '<=', date("Y-m-d"))
            ->whereDate('active_end', '>=', date("Y-m-d"))
            ->first();
//@sujay
Posted by: Guest on October-15-2020
0

check if date between two dates laravel

//get or exist data between two dates
return Set::where('type', $type)
            ->whereDate('active_start', '<=', date("Y-m-d"))
            ->whereDate('active_end', '>=', date("Y-m-d"))
            ->first();
//@sujay
Posted by: Guest on October-15-2020

Code answers related to "where given single date check with in two date columns laravel"

Browse Popular Code Answers by Language