diff --git a/src/LaravelHomeResolver.php b/src/LaravelHomeResolver.php new file mode 100644 index 0000000..069c84f --- /dev/null +++ b/src/LaravelHomeResolver.php @@ -0,0 +1,24 @@ + new HandlerResolver); - -function resolveBootstrapLocation(): string -{ - $laravelHome = $_SERVER['LAMBDA_TASK_ROOT'] . '/bootstrap/cache/config.php'; - - if (file_exists($laravelHome)) { - return $_SERVER['LAMBDA_TASK_ROOT']; - } - - // Going up 4 directories will get us from `vendor/brefphp/laravel-bridge/src` to the Laravel root folder - return realpath(__DIR__ . '/../../../../'); -}