App\Foundation\Enums\Enum::toCollection PHP Method

toCollection() public static method

public static toCollection ( ) : Collection
return Illuminate\Support\Collection
    public static function toCollection() : Collection
    {
        return collect(static::toArray());
    }