Skip to content

Commit 209974a

Browse files
pinepainbarryvdh
authored andcommitted
Add route domain config option (barryvdh#623)
1 parent 7a47a10 commit 209974a

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

config/debugbar.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,4 +180,13 @@
180180
*/
181181
'route_prefix' => '_debugbar',
182182

183+
/*
184+
|--------------------------------------------------------------------------
185+
| DebugBar route domain
186+
|--------------------------------------------------------------------------
187+
|
188+
| By default DebugBar route served from the same domain that request served.
189+
| To override default domain, specify it as a non-empty value.
190+
*/
191+
'route_domain' => null,
183192
];

src/ServiceProvider.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ public function boot()
7777
$routeConfig = [
7878
'namespace' => 'Barryvdh\Debugbar\Controllers',
7979
'prefix' => $this->app['config']->get('debugbar.route_prefix'),
80+
'domain' => $this->app['config']->get('debugbar.route_domain'),
8081
];
8182

8283
$this->getRouter()->group($routeConfig, function($router) {

0 commit comments

Comments
 (0)