laravel-prompts

Create interactive validated prompts for Laravel Artisan CLI applications.

40|7|Updated Oct 20, 2025
One-click install
npx skills add https://github.com/rawveg/skillsforge-marketplace --skill laravel-prompts
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-prompts
Source: https://github.com/rawveg/skillsforge-marketplace/tree/main/laravel-prompts
Command: npx skills add https://github.com/rawveg/skillsforge-marketplace --skill laravel-prompts

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill guides developers in adding delightful, validated prompts to Laravel command-line interfaces, improving user experience and input quality.

Core Features & Use Cases

  • Prompt Types: Text, password, select, multiselect, confirm, and more.
  • Validation: Closure-based or Laravel-style validation for inputs.
  • Forms & UX: Multi-step forms, progress indicators, and navigation tips.

Quick Start

Build a simple interactive CLI command that asks for a user email and confirms submission.

Frequently Asked Questions about laravel-prompts

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add interactive prompts to Laravel Artisan CLI commands?

Laravel Artisan prompts provide interactive, validated input methods for CLI commands. Use helpers like text(), password(), select(), and confirm() to build multi-step forms with validation callbacks, defaults, and dynamic options across macOS, Linux, and Windows/WSL.

What validation options are available for CLI user input in Laravel?

CLI prompts support closure-based and Laravel-style validation for text, password, multiselect, and other input types. Validation callbacks execute on user input, returning errors or accepting the value, ensuring data quality before processing.

Can I build multi-step forms and progress indicators in Laravel CLI apps?

Yes. Laravel CLI prompts include form() for multi-step inputs, progress() for tracking operations, and spin() for loading states. These helpers create polished user experiences with navigation support and real-time feedback in command-line tools.

Does Laravel support password input and search/suggest prompts?

Laravel CLI prompts include password() for masked input, search() for filtered option discovery, and suggest() for autocomplete. These helpers improve UX for sensitive data entry and large option lists in interactive commands.

Can I set required flags and default values for CLI prompts?

Yes. Prompt helpers support required flags to enforce input, placeholder text for guidance, and default values for optional fields. These options streamline user interaction and reduce command-line friction.

What's the best way to handle dynamic option sources in select prompts?

Multiselect and select prompts accept dynamic option sources through closures or collections, enabling real-time data fetching. This allows prompts to populate choices from databases, APIs, or computed values at runtime.