File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 142
142
143
143
'inject ' => true ,
144
144
145
+ /*
146
+ |--------------------------------------------------------------------------
147
+ | DebugBar route prefix
148
+ |--------------------------------------------------------------------------
149
+ |
150
+ | Sometimes you want to set route prefix to be used by DebugBar to load
151
+ | its resources from. Usually the need comes from misconfigured web server or
152
+ | from trying to overcome bugs like this: http://trac.nginx.org/nginx/ticket/97
153
+ |
154
+ */
155
+ 'route_prefix ' => '_debugbar ' ,
156
+
145
157
);
Original file line number Diff line number Diff line change @@ -65,8 +65,9 @@ public function boot()
65
65
66
66
$ routeConfig = [
67
67
'namespace ' => 'Barryvdh\Debugbar\Controllers ' ,
68
- 'prefix ' => ' _debugbar ' ,
68
+ 'prefix ' => $ this -> app [ ' config ' ]-> get ( ' debugbar.route_prefix ' ) ,
69
69
];
70
+
70
71
$ this ->app ['router ' ]->group ($ routeConfig , function ($ router ) {
71
72
$ router ->get ('open ' , [
72
73
'uses ' => 'OpenHandlerController@handle ' ,
You can’t perform that action at this time.
0 commit comments