Post

Laravel Prompts v0.3.15 is out! A ton of new primitives came out of building the Cloud CLI (+ some unreleased stuff 👀), so we decided to bake them in Prompts itself. Let's take a look 🧵👇

Let's start with `task()`: Run long processes with a live-updating spinner, scrolling log output, and stable success, warning, and error messages that stick around. Update the label as the task progresses.

The new `stream()` prompt is for streaming partial text to the terminal. Automatic word wrapping, ANSI support, and a smooth fade-in effect built right in. Perfect for AI responses, real-time logs, or anything that arrives incrementally.

`autocomplete()` gives users type-ahead suggestions while still allowing them to enter any value. Pass a static array or a closure that filters dynamically based on what they've typed. Great for config keys, file paths, or anything where you'd like to save the user some typing.

Select prompts now support a dynamic `info` message. Pass a closure to the new `info` parameter and it receives the currently highlighted value - display pricing details, descriptions, IDs, or any contextual info that updates as the user navigates.

0 reposts6 likes

`title()` sets the terminal window/tab title. Call it at each stage of a process so users can see status at a glance, even when the tab is in the background. Pass an empty string to reset it.

`notify()` sends native desktop notifications straight from your CLI. Supports macOS (with subtitle and sound options) and Linux (with icon support). Perfect for long-running commands: kick off a deploy, switch tabs, and get a ping when it's done.

Here's an example of using several of these new prompts together in a simple CLI application that utilizes the Laravel AI SDK: - User enters prompt - Terminal title updates to reflect the prompt - AI SDK agent enhances the story - Story is streamed out to the terminal as it is generated by agent

We want to enable you to build robust and intelligent CLI applications, which are becoming more and more common these days. Let us know what else you need! As usual, all of these new prompts are documented in the docs: laravel.com/docs/prompts

laravel.comPrompts | Laravel 13.x - The clean stack for Artisans and agentsLaravel is a PHP web application framework with expressive, elegant syntax. We've already laid the foundation — freeing you to create without sweating the small things.