From 3b2de383113ad5cf50e20bcf0373273c609fa55c Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Wed, 5 Jun 2024 05:52:29 -0500 Subject: [PATCH] Fix route path in phar (#1624) 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. --- src/ServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index 03ad85aba..d3584dab1 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -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);