Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static function getNextInspections()
- {
- $inspection = DB::table('inspection');
- $inspection->select('*');
- $inspection ->where('next_inspection_date', DB::raw('BETWEEN NOW() AND DATE_ADD(NOW(),INTERVAL 30 DAY)'));
- return $inspection->get();
- $inspection ->whereBetween('next_inspection_date ', array(Carbon::now(), Carbon::now()->addMonth(1)));
- $inspection ->whereBetween('next_inspection_date ', array(now(), now()->addMonth(1)));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement