laravel/boost
Laravel Boost accelerates AI-assisted Laravel development by supplying the context, conventions, and structure AI needs to generate high-quality, framework-specific code and suggestions, helping teams build faster while staying aligned with Laravel best practices.
Laravel Boost is a MCP (Model Context Provider) server designed to augment AI-powered local development within Laravel ecosystems. It integrates seamlessly with Laravel’s existing tooling (e.g., Laravel IDE Helper, Sail, Forge, Vapor) by providing context-aware AI assistance via skills (predefined guidelines for code generation, testing, security, etc.). The package leverages Laravel’s service container and event system to dynamically inject AI-driven suggestions, making it a natural fit for Laravel-based applications.
Key architectural strengths:
events:listen system, enabling reactive AI assistance (e.g., real-time code suggestions during Model::create or Route::get).composer require laravel/boost and a one-time php artisan boost:install.laravel/mcp: Boost is built atop the Model Context Provider (MCP), a lightweight server for AI context. This introduces a new dependency but abstracts complexity.mcp_config_path for multi-package projects.Potential challenges:
| Risk Area | Assessment | Mitigation Strategy |
|---|---|---|
| AI Agent Reliability | External APIs (Google, Claude) may fail or throttle requests. | Fallback to local caching; support for offline modes. |
| Skill Conflicts | Custom skills may clash with Boost’s defaults. | Validate skills via php artisan boost:validate. |
| Performance Impact | MCP server adds network overhead for large projects. | Optimize mcp_config_path; disable unused skills. |
| Laravel Version Lock | Boost targets Laravel 10+; may lag behind major releases. | Monitor Laravel compatibility in changelog; test against LTS versions. |
| Security | AI-generated code may introduce vulnerabilities. | Enable enforce_tests config; audit generated code via php artisan boost:audit. |
AI Agent Strategy:
Skill Customization:
Performance:
Adoption:
Compliance:
Boost is optimized for Laravel-centric stacks and integrates cleanly with:
boost:deploy).mcp_config_path for multi-package setups.Non-Laravel Compatibility:
| Phase | Action | Tools/Commands |
|---|---|---|
| Discovery | Audit existing Laravel project for AI use cases (e.g., code generation, testing). | php artisan boost:skills:list |
| Installation | Add Boost to composer.json and run installer. |
composer require laravel/boost + php artisan boost:install |
| Configuration | Customize config/boost.php (agents, skills, enforcement rules). |
php artisan boost:publish (for config stubs) |
| Skill Validation | Test custom skills in a staging environment. | php artisan boost:validate |
| IDE Setup | Configure editor plugins (e.g., VS Code extension for MCP). | Laravel Boost Docs |
| CI/CD Integration | Add Boost to deployment pipelines (e.g., run boost:audit pre-merge). |
GitHub Actions: uses: laravel/boost-action |
| Rollout | Enable Boost for development teams; monitor adoption. | php artisan boost:status (check server health) |
| Component | Compatibility Notes |
|---|---|
| Laravel | Tested on Laravel 10+; may require adjustments for Laravel 11+ (check changelog for breaking changes). |
| PHP | Requires PHP 8.1+ (due to MCP dependency). |
| AI Agents | Supports Google Antigravity, Claude, GitHub Copilot, etc. (agent-specific configs in boost.php). |
| Editors | JetBrains (PHPStorm), VS Code, Zed, Kiro. |
| Databases | No direct DB dependencies; works with MySQL, PostgreSQL, SQLite via Laravel’s DB layer. |
| Monorepos | Supported via mcp_config_path; test with php artisan boost:monorepo:detect. |
Pilot Phase:
testing, security, migrations).Gradual Rollout:
config/boost.php) to toggle skills incrementally.Production Readiness:
php artisan boost:audit.storage/logs/boost.log).| Task | Frequency | Responsibility | Notes |
|---|---|---|---|
| Boost Updates | Monthly | DevOps/TPM | Monitor laravel/boost for new versions; test upgrades in staging. |
| Skill Updates | As needed | TPM/Engineering | Custom skills may require updates for Laravel version changes. |
| MCP Server Health | Weekly | DevOps | Check php artisan boost:status; restart MCP if unresponsive. |
| Agent Configs | Quarterly | TPM | Review AI agent APIs for deprecations (e.g., Google Antigravity rate limits). |
| Dependency Updates | Monthly | DevOps | Update laravel/mcp and PHP dependencies. |
storage/logs/boost.log; verify PHP 8.1+.php artisan boost:validate.config/boost.php.How can I help you explore Laravel packages today?