Skip to content

Commit

Permalink
fixed check for own request (#1616)
Browse files Browse the repository at this point in the history
this check did not work if you used a custom route_prefix for example api/_debugbar
  • Loading branch information
grnsv authored Apr 12, 2024
1 parent 00201bc commit 35ca17e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LaravelDebugbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ public function isEnabled()
*/
protected function isDebugbarRequest()
{
return $this->app['request']->segment(1) == $this->app['config']->get('debugbar.route_prefix');
return $this->app['request']->is($this->app['config']->get('debugbar.route_prefix') . '*');
}

/**
Expand Down

0 comments on commit 35ca17e

Please sign in to comment.