public static function getAllIntervals()
    {
        $intervals = [];

        foreach (array_keys(self::$intervalMapping) as $interval) {
            $intervals[$interval] = trans('laraplans::messages.'.$interval);
        }

        return $intervals;
    }
public static function getAllIntervals()
    {
        $intervals = [];

        foreach (array_keys(self::$intervalMapping) as $interval) {
            $intervals[$interval] = trans('laraplans::messages.'.$interval);
        }

        return $intervals;
    }
public static function getAllIntervals ( ) { $ intervals = [ ] ; foreach ( array_keys ( self :: $ intervalMapping ) as $ interval ) { $ intervals [ $ interval ] = trans ( 'laraplans::messages.' . $ interval ) ; } return $ intervals ; }
Get all available intervals.

@return array
Get all available intervals .