App\Libraries\Utils::getMonthOptions PHP Method

getMonthOptions() public static method

public static getMonthOptions ( )
    public static function getMonthOptions()
    {
        $months = [];
        for ($i = 1; $i <= count(static::$months); $i++) {
            $month = static::$months[$i - 1];
            $number = $i < 10 ? '0' . $i : $i;
            $months["2000-{$number}-01"] = trans("texts.{$month}");
        }
        return $months;
    }