コード例 #1
0
 public function scopeFromYearsAgo(Builder $query, $ago, $endDateTime = null)
 {
     return $this->scopeFromDateTimeRange(DateTime::getYearsAgo($ago, $endDateTime));
 }
コード例 #2
0
 public function findFromYearsAgo($key, $value, $ago, $endDateTime = null)
 {
     return $this->findWhereDateTimeBetween($key, $value, 'created_at', DateTime::getYearsAgo($ago, $endDateTime));
 }
コード例 #3
0
 public function fromYearsAgo($ago, $endDateTime = null)
 {
     return $this->fromDateTimeRange(DateTime::getYearsAgo($ago, $endDateTime));
 }