Skip to content

Commit

Permalink
Fix route path in phar (#1624)
Browse files Browse the repository at this point in the history
Don't call realpath() on route file path, it breaks routes inside phars.
Also, it doesn't match the configPath above it.  I can't figure out why realpath() would be called here.
  • Loading branch information
murrant authored Jun 5, 2024
1 parent 3a6fda8 commit 3b2de38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public function boot()
$configPath = __DIR__ . '/../config/debugbar.php';
$this->publishes([$configPath => $this->getConfigPath()], 'config');

$this->loadRoutesFrom(realpath(__DIR__ . '/debugbar-routes.php'));
$this->loadRoutesFrom(__DIR__ . '/debugbar-routes.php');

$this->registerMiddleware(InjectDebugbar::class);

Expand Down

0 comments on commit 3b2de38

Please sign in to comment.