public function scopeFromMonthsAgo(Builder $query, $ago, $endDateTime = null) { return $this->scopeFromDateTimeRange(DateTime::getMonthsAgo($ago, $endDateTime)); }
public function findFromMonthsAgo($key, $value, $ago, $endDateTime = null) { return $this->findWhereDateTimeBetween($key, $value, 'created_at', DateTime::getMonthsAgo($ago, $endDateTime)); }
public function fromMonthsAgo($ago, $endDateTime = null) { return $this->fromDateTimeRange(DateTime::getMonthsAgo($ago, $endDateTime)); }