0
에서 나는이 다음과 같은 쿼리가 :DATEDIFF Laravel
$res = NonRemittedReceipts::where('nonrem_cstatus','<>','Closed');
$res->where('nonrem_country',Session::get('country'));
$res -> whereRaw("DATEDIFF(".$getweekdate.",nonrem_created_date) > 1");
$count = $res->count();
return $count;
내가 얻을 가정하고 그 결과 나는 내가 whereRaw 절을 사용 해달라고하면 그것을 얻을 할 1입니다.
친절히 도와주세요.
사용'carbon' 도서관, ESP diffInDays() –
시도이 ... https://laracasts.com/discuss/channels/general-discussion/difference-between-two-carbon-dates –