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

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

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

Start Date Time: Carbon::now()->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 now minus the given subType .