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.
Application::interBasePath()
1 parent a8da712 commit 1154a31Copy full SHA for 1154a31
src/Illuminate/Foundation/Application.php
@@ -257,7 +257,7 @@ public static function inferBasePath()
257
isset($_ENV['APP_BASE_PATH']) => $_ENV['APP_BASE_PATH'],
258
default => dirname(array_values(array_filter(
259
array_keys(ClassLoader::getRegisteredLoaders()),
260
- fn ($path) => ! str_contains($path, '/vendor/'),
+ fn ($path) => ! str_starts_with($path, 'phar://'),
261
))[0]),
262
};
263
}
0 commit comments