Note: If you are not using custom agents or overriding Boost in any way, you should experience minimal issues while upgrading. Simply run
php artisan boost:installafter upgrading to Boost 2.x and the migration will be handled automatically.
Note: If you are using external packages that add custom agents, ensure you update to versions that have support for Boost 2.x.
PHP 8.2 is now the minimum required version.
Laravel 11.x is now the minimum required version.
PR Link: #439
Likelihood Of Impact: Low
If you have added your own custom agents, you will need to make the following changes:
CodeEnvironment has been replaced with Agent throughout:
| Before | After |
|---|---|
CodeEnvironment |
Agent |
CodeEnvironmentsDetector |
AgentsDetector |
src/Install/CodeEnvironment/ |
src/Install/Agents/ |
Laravel\Boost\Install\CodeEnvironment |
Laravel\Boost\Install\Agents |
registerCodeEnvironment(string $key, string $className) |
registerAgent(string $key, string $className) |
getCodeEnvironments() |
getAgents() |
Several contracts have been renamed for clarity:
| Before | After |
|---|---|
Laravel\Boost\Contracts\Agent |
Laravel\Boost\Contracts\SupportsGuidelines |
Laravel\Boost\Contracts\McpClient |
Laravel\Boost\Contracts\SupportsMcp |
Laravel\Boost\Contracts\SupportSkills |
Laravel\Boost\Contracts\SupportsSkills |
If you have registered custom agents, update them to use the new namespace and contracts:
Before:
<?php
namespace App\Boost;
use Laravel\Boost\Contracts\Agent;
use Laravel\Boost\Install\CodeEnvironment\CodeEnvironment;
class MyCustomAgent extends CodeEnvironment implements Agent
{
// ...
}After:
<?php
namespace App\Boost;
use Laravel\Boost\Contracts\SupportsGuidelines;
use Laravel\Boost\Install\Agents\Agent;
class MyCustomAgent extends Agent implements SupportsGuidelines
{
// ...
}If your agent also supports MCP or skills, add the additional contracts:
use Laravel\Boost\Contracts\SupportsMcp;
use Laravel\Boost\Contracts\SupportsSkills;
class MyCustomAgent extends Agent implements SupportsGuidelines, SupportsMcp, SupportsSkills
{
// ...
}PR Link: #439
Likelihood Of Impact: Low (Only applies if you have overridden configuration options in config/boost.php)
Published configuration paths have been updated from code_environment to agents in config/boost.php:
- config('boost.code_environment.junie.guidelines_path')
+ config('boost.agents.junie.guidelines_path')This was previously undocumented, so the impact is very low unless you've explicitly overridden these configuration values.
PR Link: #439
Likelihood Of Impact: Low
The boost:install command flags have changed from negative opt-out to positive opt-in for clearer intent:
- php artisan boost:install {--ignore-guidelines} {--ignore-mcp}
+ php artisan boost:install {--guidelines} {--skills} {--mcp}