string
autocomplete(string $label, array|
Collection|
Closure $options = [], string $placeholder = '', string $default = '', bool|string $required = false, mixed $validate = null, string $hint = '',
Closure|null $transform = null)
Prompt the user for text input with auto-completion.
bool
confirm(string $label, bool $default = true, string $yes = 'Yes', string $no = 'No', bool|string $required = false, mixed $validate = null, string $hint = '',
Closure|null $transform = null)
Prompt the user to confirm an action.
array
multisearch(string $label,
Closure $options, string $placeholder = '', int $scroll = 5, bool|string $required = false, mixed $validate = null, string $hint = 'Use the space bar to select options.',
Closure|null $transform = null, string|
Closure $info = '')
Allow the user to search for multiple option.
array
multiselect(string $label, array|
Collection $options, array|
Collection $default = [], int $scroll = 5, bool|string $required = false, mixed $validate = null, string $hint = 'Use the space bar to select options.',
Closure|null $transform = null, string|
Closure $info = '')
Prompt the user to select multiple options.
int|string
number(string $label, string $placeholder = '', string $default = '', bool|string $required = false, mixed $validate = null, string $hint = '', int|null $min = null, int|null $max = null, int|null $step = null)
Prompt the user for number input.
string
password(string $label, string $placeholder = '', bool|string $required = false, mixed $validate = null, string $hint = '',
Closure|null $transform = null)
Prompt the user for input, hiding the value.
int|string
search(string $label,
Closure $options, string $placeholder = '', int $scroll = 5, mixed $validate = null, string $hint = '', bool|string $required = true,
Closure|null $transform = null, string|
Closure $info = '')
Allow the user to search for an option.
int|string
select(string $label, array|
Collection $options, int|string|null $default = null, int $scroll = 5, mixed $validate = null, string $hint = '', bool|string $required = true,
Closure|null $transform = null, string|
Closure $info = '')
Prompt the user to select an option.
string
suggest(string $label, array|
Closure|
Collection $options, string $placeholder = '', string $default = '', int $scroll = 5, bool|string $required = false, mixed $validate = null, string $hint = '',
Closure|null $transform = null, string|
Closure $info = '')
Prompt the user for text input with auto-completion.
string
text(string $label, string $placeholder = '', string $default = '', bool|string $required = false, mixed $validate = null, string $hint = '',
Closure|null $transform = null)
Prompt the user for text input.
string
textarea(string $label, string $placeholder = '', string $default = '', bool|string $required = false, mixed $validate = null, string $hint = '', int $rows = 5,
Closure|null $transform = null)
Prompt the user for multiline text input.