Skip to content

Commit 9aa8521

Browse files
committed
dx: improve install command & relative paths
- move away from `./artisan` - reset background color on outro so it doesn't affect the whole terminal -
1 parent ccbfddf commit 9aa8521

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.ai/laravel/core.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
## Do Things the Laravel Way
2-
- Use `./artisan make:` commands to create new files (i.e. migrations, controllers, models, etc.).
2+
- Use `php artisan make:` commands to create new files (i.e. migrations, controllers, models, etc.).
33
- If you're creating a generic PHP class, use `artisan make:class`.
44

55
## Database
@@ -11,7 +11,7 @@
1111
- Use Laravel's query builder for very complex database operations.
1212

1313
## Model Creation
14-
- When creating new models, create factories and seeders for them too. Ask the user if they need any other things, use `list-artisan-commands` to check the available options to `./artisan make:model`
14+
- When creating new models, create factories and seeders for them too. Ask the user if they need any other things, use `list-artisan-commands` to check the available options to `php artisan make:model`
1515

1616
## APIs and Eloquent Resources
1717
- For APIs, use Eloquent API Resources and API versioning

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ composer require laravel/boost --dev
3434

3535
Install the MCP server & guidelines
3636
```bash
37-
./artisan boost:install
37+
php artisan boost:install
3838
```
3939

4040
You're ready to go!

src/Console/InstallCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ private function outro(): void
191191
$paddingLength = (int) (floor(($this->terminal->cols() - mb_strlen($text.$label)) / 2)) - 2;
192192

193193
echo "\033[42m\033[2K".str_repeat(' ', $paddingLength); // Make the entire line have a green background
194-
echo $this->black($this->bold($text.$link)).PHP_EOL;
194+
echo $this->black($this->bold($text.$link)).$this->reset().PHP_EOL;
195195
}
196196

197197
private function hyperlink(string $label, string $url): string
@@ -337,7 +337,7 @@ private function selectTargetIdes(): Collection
337337
}
338338

339339
$selectedIdeClasses = collect(multiselect(
340-
label: sprintf('Which IDEs do you use in %s? (space to select)', $this->projectName),
340+
label: sprintf('Which code editors do you use in %s?', $this->projectName),
341341
options: $ides,
342342
default: $detectedClasses,
343343
scroll: 5,
@@ -546,7 +546,7 @@ protected function enactMcpServers(): void
546546
// Install Laravel Boost MCP if enabled
547547
if ($this->installingMcp()) {
548548
try {
549-
$result = $ide->installMcp('laravel-boost', base_path('artisan'), ['boost:mcp']);
549+
$result = $ide->installMcp('laravel-boost', 'php', ['./artisan', 'boost:mcp']);
550550

551551
if ($result) {
552552
$results[] = $this->greenTick.' Boost';

0 commit comments

Comments
 (0)