Documentation Index
Fetch the complete documentation index at: https://vu-ddaf4ff3.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Requirements
Prompt Deck has the following requirements:| Dependency | Version |
|---|---|
| PHP | ^8.2 |
| Laravel | ^11.0 ++ |
The
sebastian/diff package is required and is used for the prompt:diff
command. It may conflict with your PHPUnit/Pest PHP installation so you may
need to upgrade these dependencies to the latest version.Optional dependencies
| Package | Purpose |
|---|---|
laravel/ai | Enables deep integration with Laravel AI SDK agents to support automatic instructions loading, prompt version tracking in conversations, and auto-scaffolding prompts when creating agents. |
Installing Prompt Deck
Install the package via Composer:If you have disabled auto-discovery, you will need to manually register the
service provider and facade. See the Manual discovery
section for details.
Publishing the configuration
Publish the configuration file to customise Prompt Deck’s behaviour:config/prompt-deck.php in your application. See the Configuration documentation for a full reference of all available options.
Publishing migrations
If you plan to use database tracking for prompt versions and execution logging, publish and run the migrations:| Table | Purpose |
|---|---|
prompt_versions | Stores prompt version records and tracks which version is active. |
prompt_executions | Logs individual prompt executions with tokens, latency, cost, and feedback data. |
Database tracking is optional. Prompt Deck works fully without it as version
activation falls back to
metadata.json files, and execution tracking is
simply disabled.Environment variables
Add the following to your.env file to configure Prompt Deck’s runtime behaviour:
Verifying the installation
After installation, verify everything is working:resources/prompts/hello-world/.
Manual discovery
The package uses Laravel’s auto-discovery, so the service provider and facade are registered automatically. No manual registration is needed. If you have disabled auto-discovery, add the provider and facade to yourbootstrap/providers.php (Laravel 11+) or config/app.php:
config/app.php:
What’s next?
Configuration
Customise Prompt Deck’s behaviour.
Creating prompts
Learn the full
make:prompt command.Working with prompts
Load, render, and manage prompts in your code.
Laravel AI SDK
Use prompts with AI agents.