Miglioramento abilitazione debugbar

This commit is contained in:
Thomas Zilio 2022-03-02 12:42:32 +01:00
parent 279fe2eca9
commit cfdbe43b17
3 changed files with 6 additions and 5 deletions

View File

@ -25,5 +25,8 @@ class AppServiceProvider extends ServiceProvider
*/ */
public function boot() public function boot()
{ {
if(config('app.debug')) {
\Debugbar::getJavascriptRenderer()->setAjaxHandlerAutoShow(false);
}
} }
} }

View File

@ -38,8 +38,7 @@
"laravel/framework": "^9.0", "laravel/framework": "^9.0",
"laravel/tinker": "^2.5", "laravel/tinker": "^2.5",
"spatie/laravel-ignition": "^1.0", "spatie/laravel-ignition": "^1.0",
"symfony/polyfill-ctype": "^1.8", "symfony/polyfill-ctype": "^1.8"
"symfony/polyfill-php70": "^1.8"
}, },
"require-dev": { "require-dev": {
"fakerphp/faker": "^1.9.1", "fakerphp/faker": "^1.9.1",

View File

@ -13,10 +13,9 @@ return [
| |
*/ */
'enabled' => env('DEBUGBAR_ENABLED', null), 'enabled' => config('app.debug'),
'except' => [ 'except' => [
'telescope*', 'hook/*',
'horizon*',
], ],
/* /*