/** * DateDiffCalculator that calculates diff to the past in one of the units: * - seconds * - minutes * - hours * - days * - weeks * - months * - years * * @return DateDiffCalculator */ public static function full() { return self::getOrCreate('full', function () { return new DateDiffCalculator([Rules::yearsAgo(), Rules::monthsAgo(), Rules::weeksAgo(), Rules::daysAgo(), Rules::hoursAgo(), Rules::minutesAgo(), Rules::secondsAgo()]); }); }
protected function createRule() { return Rules::monthsAgo(); }