Skip to content

Commit d620809

Browse files
authored
Merge branch 'main' into fix-install-process
2 parents a4ae226 + 5604db7 commit d620809

File tree

15 files changed

+147
-29
lines changed

15 files changed

+147
-29
lines changed

.ai/boost/core.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
- You must use this tool to search for Laravel-ecosystem documentation before falling back to other approaches.
2424
- Search the documentation before making code changes to ensure we are taking the correct approach.
2525
- Use multiple, broad, simple, topic based queries to start. For example: `['rate limiting', 'routing rate limiting', 'routing']`.
26-
- Do not add package names to queries, package information is already shared. Use `test resource table`, not `filament 4 test resource table`.
26+
- Do not add package names to queries - package information is already shared. For example, use `test resource table`, not `filament 4 test resource table`.
2727

2828
### Available Search Syntax
2929
- You can and should pass multiple queries at once. The most relevant results will be returned first.

.ai/filament/3/core.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
## Version 3 Changes To Focus On
44
- Resources are located in `app/Filament/Resources/` directory.
5-
- Resource pages (List, Create, Edit) are auto-generated within the resource's directory, i.e. `app/Filament/Resources/PostResource/Pages/`.
5+
- Resource pages (List, Create, Edit) are auto-generated within the resource's directory - e.g., `app/Filament/Resources/PostResource/Pages/`.
66
- Forms use the `Forms\Components` namespace for form fields.
77
- Tables use the `Tables\Columns` namespace for table columns.
8-
- New RichEditor component available (`Filament\Forms\Components\RichEditor`).
8+
- A new `Filament\Forms\Components\RichEditor` component is available.
99
- Form and table schemas now use fluent method chaining.
1010
- Added `php artisan filament:optimize` command for production optimization.
1111
- Requires implementing `FilamentUser` contract for production access control.

.ai/fluxui-free/core.blade.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66
- Fallback to standard Blade components if Flux is unavailable.
77
- If available, use Laravel Boost's `search-docs` tool to get the exact documentation and code snippets available for this project.
88
- Flux UI components look like this:
9+
@verbatim
910
<code-snippet name="Flux UI Component Usage Example" lang="blade">
1011
<flux:button variant="primary"/>
1112
</code-snippet>
13+
@endverbatim
1214

1315
### Available Components
1416
This is correct as of Boost installation, but there may be additional components within the codebase.

.ai/fluxui-pro/core.blade.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66
- Fallback to standard Blade components if Flux is unavailable.
77
- If available, use Laravel Boost's `search-docs` tool to get the exact documentation and code snippets available for this project.
88
- Flux UI components look like this:
9+
@verbatim
910
<code-snippet name="Flux UI component usage example" lang="blade">
1011
<flux:button variant="primary"/>
1112
</code-snippet>
13+
@endverbatim
1214

1315
### Available Components
1416
This is correct as of Boost installation, but there may be additional components within the codebase.

.ai/volt/core.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
- This project uses Livewire Volt for interactivity within its pages. New pages requiring interactivity must also use Livewire Volt. There is documentation available for it.
44
- Make new Volt components using `php artisan make:volt [name] [--test] [--pest]`
55
- Volt is a **class-based** and **functional** API for Livewire that supports single-file components, allowing a component's PHP logic and Blade templates to co-exist in the same file
6-
- Livewire Volt allows PHP logic and Blade templates in one file. Components use the `@volt` directive.
6+
- Livewire Volt allows PHP logic and Blade templates in one file. Components use the @verbatim`@volt`@endverbatim directive.
77
- You must check existing Volt components to determine if they're functional or class based. If you can't detect that, ask the user which they prefer before writing a Volt component.
88

99
### Volt Functional Component Example

CHANGELOG.md

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,59 @@
11
# Release Notes
22

3-
## [Unreleased](https://github.com/laravel/boost/compare/v1.0.11...main)
3+
## [Unreleased](https://github.com/laravel/boost/compare/v1.0.17...main)
4+
5+
## [v1.0.17](https://github.com/laravel/boost/compare/v1.0.16...v1.0.17) - 2025-08-14
6+
7+
### What's Changed
8+
9+
* Fix: Replace APP_DEBUG with environment-based gating by [@eduardocruz](https://github.com/eduardocruz) in https://github.com/laravel/boost/pull/90
10+
11+
### New Contributors
12+
13+
* [@eduardocruz](https://github.com/eduardocruz) made their first contribution in https://github.com/laravel/boost/pull/90
14+
15+
**Full Changelog**: https://github.com/laravel/boost/compare/v1.0.16...v1.0.17
16+
17+
## [v1.0.16](https://github.com/laravel/boost/compare/v1.0.15...v1.0.16) - 2025-08-14
18+
19+
### What's Changed
20+
21+
* refactor: streamline path resolution and simplify the MCP client interface by [@pushpak1300](https://github.com/pushpak1300) in https://github.com/laravel/boost/pull/111
22+
* Fix PHPStorm using absolute paths by [@ashleyhindle](https://github.com/ashleyhindle) in https://github.com/laravel/boost/pull/109
23+
24+
**Full Changelog**: https://github.com/laravel/boost/compare/v1.0.15...v1.0.16
25+
26+
## [v1.0.15](https://github.com/laravel/boost/compare/v1.0.14...v1.0.15) - 2025-08-14
27+
28+
### What's Changed
29+
30+
* fixes #67 by only finding files that begin with an uppercase letter by [@ashleyhindle](https://github.com/ashleyhindle) in https://github.com/laravel/boost/pull/116
31+
32+
**Full Changelog**: https://github.com/laravel/boost/compare/v1.0.14...v1.0.15
33+
34+
## [v1.0.14](https://github.com/laravel/boost/compare/v1.0.13...v1.0.14) - 2025-08-14
35+
36+
### What's Changed
37+
38+
* Fixes #85 by adding verbatim to flux component example by [@ashleyhindle](https://github.com/ashleyhindle) in https://github.com/laravel/boost/pull/114
39+
40+
**Full Changelog**: https://github.com/laravel/boost/compare/v1.0.13...v1.0.14
41+
42+
## [v1.0.13](https://github.com/laravel/boost/compare/v1.0.12...v1.0.13) - 2025-08-14
43+
44+
### What's Changed
45+
46+
* Fix volt blade parsing by [@ashleyhindle](https://github.com/ashleyhindle) in https://github.com/laravel/boost/pull/112
47+
48+
**Full Changelog**: https://github.com/laravel/boost/compare/v1.0.12...v1.0.13
49+
50+
## [v1.0.12](https://github.com/laravel/boost/compare/v1.0.11...v1.0.12) - 2025-08-14
51+
52+
### What's Changed
53+
54+
* tool: tinker: try to nudge away from creating test users ahead of time by [@ashleyhindle](https://github.com/ashleyhindle) in https://github.com/laravel/boost/pull/108
55+
56+
**Full Changelog**: https://github.com/laravel/boost/compare/v1.0.11...v1.0.12
457

558
## [v1.0.11](https://github.com/laravel/boost/compare/v1.0.10...v1.0.11) - 2025-08-14
659

src/BoostServiceProvider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ public function register(): void
5555

5656
public function boot(Router $router): void
5757
{
58-
if (config('app.debug', false) !== true) {
58+
// Only enable Boost on local environments
59+
if (! app()->environment(['local', 'testing']) && config('app.debug', false) !== true) {
5960
return;
6061
}
6162

src/Console/InstallCommand.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -473,17 +473,18 @@ private function installMcpServerConfig(): void
473473
)->toArray()
474474
);
475475

476-
/** @var CodeEnvironment $mcpClient */
476+
/** @var McpClient $mcpClient */
477477
foreach ($this->selectedTargetMcpClient as $mcpClient) {
478478
$ideName = $mcpClient->mcpClientName();
479479
$ideDisplay = str_pad($ideName, $longestIdeName);
480480
$this->output->write(" {$ideDisplay}... ");
481481
$results = [];
482482

483+
$php = $mcpClient->getPhpPath();
483484
if ($this->shouldInstallMcp()) {
484485
try {
485-
$artisan = $mcpClient->useAbsolutePathForMcp ? base_path('artisan') : './artisan';
486-
$result = $mcpClient->installMcp('laravel-boost', 'php', [$artisan, 'boost:mcp']);
486+
$artisan = $mcpClient->getArtisanPath();
487+
$result = $mcpClient->installMcp('laravel-boost', $php, [$artisan, 'boost:mcp']);
487488

488489
if ($result) {
489490
$results[] = $this->greenTick.' Boost';
@@ -502,7 +503,7 @@ private function installMcpServerConfig(): void
502503
try {
503504
$result = $mcpClient->installMcp(
504505
key: 'herd',
505-
command: 'php',
506+
command: $php,
506507
args: [$this->herd->mcpPath()],
507508
env: ['SITE_PATH' => base_path()]
508509
);

src/Contracts/McpClient.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,21 @@ interface McpClient
1616
*/
1717
public function mcpClientName(): ?string;
1818

19+
/**
20+
* Whether to use absolute paths for MCP commands.
21+
*/
22+
public function useAbsolutePathForMcp(): bool;
23+
24+
/**
25+
* Get the PHP executable path for this MCP client.
26+
*/
27+
public function getPhpPath(): string;
28+
29+
/**
30+
* Get the artisan path for this MCP client.
31+
*/
32+
public function getArtisanPath(): string;
33+
1934
/**
2035
* Install an MCP server configuration in this IDE.
2136
*

src/Install/CodeEnvironment/CodeEnvironment.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,22 @@ public function mcpClientName(): ?string
3535
return $this->displayName();
3636
}
3737

38+
public function useAbsolutePathForMcp(): bool
39+
{
40+
return $this->useAbsolutePathForMcp;
41+
}
42+
43+
public function getPhpPath(): string
44+
{
45+
return $this->useAbsolutePathForMcp() ? PHP_BINARY : 'php';
46+
}
47+
48+
public function getArtisanPath(): string
49+
{
50+
return $this->useAbsolutePathForMcp() ? base_path('artisan') : './artisan';
51+
52+
}
53+
3854
/**
3955
* Get the detection configuration for system-wide installation detection.
4056
*

0 commit comments

Comments
 (0)