Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 /**
  * 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();
 }
Exemplo n.º 3
0
 function formatDate(Carbon $time)
 {
     return $time->toDateString();
 }