Issue Description:
The prompts are no longer displaying the confirmation messages. While using the confirm function, the label entered as an argument is not being displayed. The confirmation prompt still appears (I can interact with it by pressing Yes, No, or hitting Enter), but the actual message asking for confirmation is missing, which makes it unclear what action is being confirmed ( and it may give the wrong impression that the console is still working or something since nothing shows up).
Steps To Reproduce
Steps to Reproduce:
Use the confirm() function within a command or script.
Provide a label as an argument (e.g., confirm('Are you sure?', true)).
The prompt shows up with interactive Yes/No options, but the label/message is not displayed.
Expected Behavior:
The label passed to the confirm() function should be displayed to the user, prompting them for input.
Actual Behavior:
No label is displayed. The prompt itself works, but the message is missing.
Context:
I discovered this issue while working on an enhancement for the Jetstream package to improve its functionality. I was planning to open a Pull Request (PR) for this enhancement. However, I ran into this issue because Jetstream also uses the same prompts package, and the problem affects the display of prompts across both packages.
Laravel Prompts Version
0.1.25
Laravel Version
11.23.1
PHP Version
8.3.11
Operating System & Version
windows 11
Terminal Application
windows cmd or powershell
Description
Issue Description: The prompts are no longer displaying the confirmation messages. While using the
confirm
function, the label entered as an argument is not being displayed. The confirmation prompt still appears (I can interact with it by pressing Yes, No, or hitting Enter), but the actual message asking for confirmation is missing, which makes it unclear what action is being confirmed ( and it may give the wrong impression that the console is still working or something since nothing shows up).Steps To Reproduce
Steps to Reproduce:
confirm()
function within a command or script.confirm('Are you sure?', true)
).Expected Behavior: The label passed to the
confirm()
function should be displayed to the user, prompting them for input.Actual Behavior: No label is displayed. The prompt itself works, but the message is missing.
Context: I discovered this issue while working on an enhancement for the Jetstream package to improve its functionality. I was planning to open a Pull Request (PR) for this enhancement. However, I ran into this issue because Jetstream also uses the same prompts package, and the problem affects the display of prompts across both packages.
Environment: