Skip to content

Commit

Permalink
Route prefix made configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
FractalizeR committed Mar 3, 2015
1 parent 7bdf8ac commit 421728d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
12 changes: 12 additions & 0 deletions config/debugbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,16 @@

'inject' => true,

/*
|--------------------------------------------------------------------------
| DebugBar route prefix
|--------------------------------------------------------------------------
|
| Sometimes you want to set route prefix to be used by DebugBar to load
| its resources from. Usually the need comes from misconfigured web server or
| from trying to overcome bugs like this: http://trac.nginx.org/nginx/ticket/97
|
*/
'route_prefix' => '_debugbar',

);
3 changes: 2 additions & 1 deletion src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,9 @@ public function boot()

$routeConfig = [
'namespace' => 'Barryvdh\Debugbar\Controllers',
'prefix' => '_debugbar',
'prefix' => $this->app['config']->get('debugbar.route_prefix'),
];

$this->app['router']->group($routeConfig, function($router) {
$router->get('open', [
'uses' => 'OpenHandlerController@handle',
Expand Down

0 comments on commit 421728d

Please sign in to comment.