Prompt API, easing adoption for teams already using laravel/prompts or similar libraries.FlowCommand without enforcing monolithic architecture. Existing Artisan commands can be incrementally migrated.step=environment query params). Undocumented edge cases (e.g., session handling, CSRF) may arise.FlowCommand steps in isolation?php artisan setup:admin).php artisan migrate:custom).php artisan saas:configure).FlowCommand to validate the approach.php artisan deploy:configure command with 5+ prompts into a flow.laravel/prompts, rewrite steps to use moox/prompts functions (e.g., select() → Moox\Prompts\select()).replace() in composer.json to alias functions if needed.laravel/prompts or manual CLI prompts.step from requests and hydrate the FlowCommand.public function handle(Request $request, Closure $next) {
if ($request->has('step') && $command = app()->make(ProjectSetupCommand::class)) {
$command->setStep($request->step);
// Render step-specific view
}
return $next($request);
}
config('session.driver') is configured for web flows.text, select, confirm, etc.) in CLI mode.Validator).dd($this->environment) in steps to inspect state.info("Starting step: {$this->step}")).flow_steps table with command_id, step, state).command_id or user sessions to isolate flows.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Web step crashes | Broken flow, user stuck | Implement step-timeout redirects to CLI. |
| Session expires | Lost state | Use database-backed sessions or cache. |
| Concurrent CLI/web conflicts | State corruption | Add command_id to state and validate uniqueness. |
| Prompt validation fails | Infinite loop | Add max-retries logic or fallback to CLI. |
| Laravel upgrade breaks API | Flow commands fail | Test against Laravel’s minor version branches. |
laravel/prompts.dd() to inspect properties between steps.FlowCommand template for the team.How can I help you explore Laravel packages today?