private function getCount(Carbon $start_date, Carbon $end_date) { $count = Animal::where('date_of_birth', '>', $start_date->toDateString())->where('date_of_birth', '<=', $end_date->toDateString())->where('status_id', '=', Config::get('rescue.available_id'))->count(); return $count; }
/** * Checks if the passed in date is the same day as the instance current day. * * @param Carbon $dt * @return boolean */ public function isSameDay(Carbon $dt) { return $this->toDateString() === $dt->toDateString(); }
function formatDate(Carbon $time) { return $time->toDateString(); }