Unveiling Laravel Prompts
summary
A new PHP package, Laravel Prompts, creates richer CLI inputs than Symfony Console by adding functions like text with placeholder and live validation, suggest component for autocomplete and a search that queries Eloquent and returns IDs. It adds password, confirm, select, multi-select with hjkl navigation, plus callback validation and customizable errors. Commands like artisan make, vendor:publish and the Laravel installer already use it; it falls back to Symfony on non‑WSL Windows, ships with Laravel soon, and demos show it working reliably.
AI-written summary · about
chapters (15)
- 0:00Introduction to Laravel Prompts
- 1:46Text input comparison
- 2:33New text prompt features
- 6:45Password input demo
- 7:48Confirmation prompts
- 9:38Single choice selection
- 12:27Multi-select options
- 15:14Auto-completion features
- 17:43Search component
- 19:57Artisan command improvements
- 24:11Laravel installer demo
- 25:56Adding prompts to custom commands
- 31:42Implementation and availability
- 32:45How prompts work technically
- 33:42Q&A session








