src/Concerns/Selection.php
public function getSelectOption(
        $display,
        string $value,
        $selected,
        array $attributes = [],
        array $optgroups = []
    ): Htmlable {
        if (\is_iterable($display)) {
            return $this->optionGroup($display, $value, $selected, $optgroups, $attributes);
        }

        return $this->option($display, $value, $selected, $attributes);
    }
public function getSelectOption(
        $display,
        string $value,
        $selected,
        array $attributes = [],
        array $optgroups = []
    ): Htmlable {
        if (\is_iterable($display)) {
            return $this->optionGroup($display, $value, $selected, $optgroups, $attributes);
        }

        return $this->option($display, $value, $selected, $attributes);
    }
Get the select option for the given value.

@param  string|array  $display
@param  string  $value
@param  string|array|null  $selected
@param  array  $attributes
@param  array  $optgroups

@return \Illuminate\Contracts\Support\Htmlable