Skip to content

Commit 35ca17e

Browse files
authored
fixed check for own request (#1616)
this check did not work if you used a custom route_prefix for example api/_debugbar
1 parent 00201bc commit 35ca17e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LaravelDebugbar.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,7 @@ public function isEnabled()
843843
*/
844844
protected function isDebugbarRequest()
845845
{
846-
return $this->app['request']->segment(1) == $this->app['config']->get('debugbar.route_prefix');
846+
return $this->app['request']->is($this->app['config']->get('debugbar.route_prefix') . '*');
847847
}
848848

849849
/**

0 commit comments

Comments
 (0)