Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
deleugpn authored Sep 27, 2023
1 parent e516f0a commit d283a70
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/HandlerResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ private function resolveBootstrapLocation(): string
return $bootstrapFile;
}

// Here we leave 4 levels of folder.
// 1 is the `src` folder inside Laravel Bridge
// 2 are `brefphp/laravel-bridge - the way Composer Packages are formed
// 1 is the `vendor` folder itself, giving a total of 4 levels.
// Once we're in the root of the Laravel project, we can navigate to `bootstrap/app.php` to locate the bootstrap file.
if (file_exists(__DIR__ . '/../../../../bootstrap/app.php')) {
return realpath(__DIR__ . '/../../../../bootstrap/app.php');
}
Expand Down

0 comments on commit d283a70

Please sign in to comment.