FEATURE: add simple view for requests and queries
This commit is contained in:
@@ -11,7 +11,6 @@ class ProfilerServiceProvider extends ModuleServiceProvider
|
||||
$this->alias = 'profiler';
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Boot the application events.
|
||||
*
|
||||
@@ -28,10 +27,20 @@ class ProfilerServiceProvider extends ModuleServiceProvider
|
||||
{
|
||||
parent::register();
|
||||
|
||||
$this->app['router']->prependMiddlewareToGroup('web', Profiler::class);
|
||||
// $this->app['router']->prependMiddlewareToGroup('admin', Profiler::class);
|
||||
}
|
||||
// register settings form
|
||||
$registrator = $this->app->make('registerSettingsExtension');
|
||||
$registrator->register('profiler', 'profiler::module.name', 'profiler::settings.profiler');
|
||||
|
||||
// turn on profiler for visitor area (middleware group "web")
|
||||
if (setting('useProfilerInVisitorArea', true)) {
|
||||
$this->app['router']->prependMiddlewareToGroup('web', Profiler::class);
|
||||
}
|
||||
|
||||
// use profiler also in admin?
|
||||
if (setting('useProfilerInAdmin', true)) {
|
||||
$this->app['router']->prependMiddlewareToGroup('admin', Profiler::class);
|
||||
}
|
||||
}
|
||||
|
||||
protected function setModulePath()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user