예제 #1
0
 private function endUpdate($start_day)
 {
     $date = date('Y-m-d H:i:s', $start_day);
     \App\Models\Violations::on($this->city->db)->where('status', '=', '1')->where('updated', '<', $date)->delete();
 }
예제 #2
0
 public static function getUncheckedViolations($db, $begin_of_day, $end_of_day)
 {
     return Violations::on($db)->where('status', '=', '0')->whereBetween('vio_date', [$begin_of_day, $end_of_day])->get();
 }