コード例 #1
0
ファイル: Violations.php プロジェクト: neolinks/cabinet
 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
ファイル: Violations.php プロジェクト: neolinks/cabinet
 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();
 }