resources/prompts/, enabling Git version control and collaboration. Avoids database bloat for static prompts.PromptExecuted). Can be extended for enterprise needs (e.g., audit logging, RBAC).vendor:publish + migrate (minimal setup). No complex dependencies beyond Laravel core.instructions()). Ideal for apps using laravel-ai.make:prompt, prompt:activate). Compatible with Laravel Mix/Valet/Sail.prompt_versions, prompt_executions). Minimal impact on existing DB schemas.veeqtoh/prompt-deck). Mitigate by planning a controlled rollout.{{ $var }} syntax, which could conflict with existing templating engines (e.g., Blade). Test edge cases (e.g., nested variables, malformed syntax).prompt_executions.prompt_executions to track custom metrics (e.g., API costs, response quality)?veeqtoh/prompt-deck? If so, budget time for namespace/config refactoring.Deck::get() for clean syntax.HasPromptTemplate trait for agents.resources/ integrate with VS Code/Laravel IDE Helpers.make:prompt) can be triggered in pipelines.resources/prompts/{name}/ structure.make:prompt to scaffold new templates alongside old code.Deck::get() calls.veeqtoh/prompt-deck → promptphp/deck transition.deck.php), facades, and service providers.^0.3.x (pre-v0.4.0) if stuck on Laravel 10/11.toMessages() output.Deck calls.DECK_PROMPT_PATH if using custom directories.make:prompt customer-support).{{ $user }}, {{ $product }}).HasPromptTemplate to AI agents.instructions() auto-generation.DECK_TRACK_EXECUTIONS=true).prompt_executions for analytics.make:prompt, prompt:list) reduce manual setup.make:prompt {name} → edit files → prompt:activate.Deck::get() + dd().prompt_executions table captures usage; extend with custom events.Deck::cache()).prompt_executions scales with usage; index prompt_id and created_at.PromptManager to validate users/teams for prompt edits.PromptCreated events into Slack/Notion for team alerts.DECK_ACTIVE_VERSION in .env for environment-specific versions (e.g., v1 in staging, v2 in prod).prompt:activate order-summary v2 --users=premium).| Risk | Impact | Mitigation |
|---|---|---|
| Missing prompt file | App crashes or uses default prompt. | Use Deck::get()->fallback() or configure DECK_DEFAULT_PROMPT. |
| Variable interpolation | Syntax errors break rendering. | Validate variables with Deck::validate() or use a schema (e.g., JSON metadata). |
| Database connection | Tracking fails. | Queue prompt_executions or log to file as fallback. |
How can I help you explore Laravel packages today?