We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bc02f8 commit 6e29dbfCopy full SHA for 6e29dbf
src/Install/CodeEnvironment/CodeEnvironment.php
@@ -12,6 +12,7 @@
12
use Laravel\Boost\Install\Detection\DetectionStrategyFactory;
13
use Laravel\Boost\Install\Enums\McpInstallationStrategy;
14
use Laravel\Boost\Install\Enums\Platform;
15
+use Throwable;
16
17
abstract class CodeEnvironment
18
{
@@ -51,12 +52,8 @@ public function getArtisanPath(): string
51
52
return './artisan';
53
}
54
- // Try to get the base path from Laravel app, fallback to getcwd
55
- try {
56
- return base_path('artisan');
57
- } catch (\Throwable) {
58
- return getcwd().'/artisan';
59
- }
+ return base_path('artisan');
+
60
61
62
/**
0 commit comments