public static function subToday(string $subType, int $subValue): self
    {
        $subTypeMethod = 'sub'.ucfirst(strtolower(Str::after($subType, 'PAST_')));
        $today = Carbon::today();

        return self::sub($today, $subTypeMethod, $subType, $subValue);
    }
public static function subToday(string $subType, int $subValue): self
    {
        $subTypeMethod = 'sub'.ucfirst(strtolower(Str::after($subType, 'PAST_')));
        $today = Carbon::today();

        return self::sub($today, $subTypeMethod, $subType, $subValue);
    }
public static function subToday ( string $ subType , int $ subValue ) : self { $ subTypeMethod = 'sub' . ucfirst ( strtolower ( Str :: after ( $ subType , 'PAST_' ) ) ) ; $ today = Carbon :: today ( ) ; return self :: sub ( $ today , $ subTypeMethod , $ subType , $ subValue ) ; }
Create a new Period instance with a start date time of today minus the given subType.

Start Date Time: Carbon::today()->sub<subType>(<subValue>);

@param  string  $subType
@param  int  $subValue
@return \CyrildeWit\EloquentViewable\Support\Period
Create a new Period instance with a start date time of today minus the given subType .