Laravel Prompts is a package that simplifies creating user-friendly forms for Artisan commands. It provides features like input placeholders, validation rules, and various input helpers. This post demonstrates how to use Laravel Prompts by building a GitHub CLI client and highlights methods like `text`, `password`, `confirm`, `select`, and `form`. It also covers writing tests for Prompts commands, using a GitHub API client, and creating forms for console interactions.
Table of contents
What is Laravel Prompts?Basic usage of PromptsBuilding a simple GitHub CLI client with PromptsTesting the commandConclusionSort: