From 0ea8beb62d2d0120b0ab524de72de232e209a533 Mon Sep 17 00:00:00 2001 From: Adam Patterson Date: Thu, 26 Oct 2023 09:13:10 -0600 Subject: [PATCH 1/4] barryvdh/laravel-debugbar#1490 adds ajax_handler_auto_show and some documentation --- config/debugbar.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/debugbar.php b/config/debugbar.php index 169ce435d..e2923aea7 100644 --- a/config/debugbar.php +++ b/config/debugbar.php @@ -116,10 +116,14 @@ | | Note for your request to be identified as ajax requests they must either send the header | X-Requested-With with the value XMLHttpRequest (most JS libraries send this), or have application/json as a Accept header. + | + | By defauult `ajax_handler_auto_show` is set to true be default, changing this to false will disable the auto show once a + | new ajax request is detected. */ 'capture_ajax' => true, 'add_ajax_timing' => false, + 'ajax_handler_auto_show' => true, /* |-------------------------------------------------------------------------- From f87e51ce665d6332351dce36e5f02cb874993ed5 Mon Sep 17 00:00:00 2001 From: Adam Patterson Date: Thu, 26 Oct 2023 09:15:42 -0600 Subject: [PATCH 2/4] Update debugbar.php --- config/debugbar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/debugbar.php b/config/debugbar.php index e2923aea7..6da721243 100644 --- a/config/debugbar.php +++ b/config/debugbar.php @@ -117,7 +117,7 @@ | Note for your request to be identified as ajax requests they must either send the header | X-Requested-With with the value XMLHttpRequest (most JS libraries send this), or have application/json as a Accept header. | - | By defauult `ajax_handler_auto_show` is set to true be default, changing this to false will disable the auto show once a + | By default `ajax_handler_auto_show` is set to true be default, changing this to false will disable the auto show once a | new ajax request is detected. */ From c9ae4ab68a9d53b3f01a2f67c7fef27c446a4d0f Mon Sep 17 00:00:00 2001 From: Adam Patterson Date: Thu, 26 Oct 2023 10:39:48 -0600 Subject: [PATCH 3/4] Update debugbar.php --- config/debugbar.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/debugbar.php b/config/debugbar.php index 6da721243..b3d5422a8 100644 --- a/config/debugbar.php +++ b/config/debugbar.php @@ -117,8 +117,8 @@ | Note for your request to be identified as ajax requests they must either send the header | X-Requested-With with the value XMLHttpRequest (most JS libraries send this), or have application/json as a Accept header. | - | By default `ajax_handler_auto_show` is set to true be default, changing this to false will disable the auto show once a - | new ajax request is detected. + | By default `ajax_handler_auto_show` is set to true be default, changing `ajax_handler_auto_show` to false will disable + | the auto show when a new ajax request is detected. */ 'capture_ajax' => true, From 6078ab219c288d40399f6b11a4525a7d51da1145 Mon Sep 17 00:00:00 2001 From: Adam Patterson Date: Sun, 29 Oct 2023 12:35:51 -0600 Subject: [PATCH 4/4] better description of ajax_handler_auto_show --- config/debugbar.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/debugbar.php b/config/debugbar.php index b3d5422a8..745439130 100644 --- a/config/debugbar.php +++ b/config/debugbar.php @@ -117,8 +117,8 @@ | Note for your request to be identified as ajax requests they must either send the header | X-Requested-With with the value XMLHttpRequest (most JS libraries send this), or have application/json as a Accept header. | - | By default `ajax_handler_auto_show` is set to true be default, changing `ajax_handler_auto_show` to false will disable - | the auto show when a new ajax request is detected. + | By default `ajax_handler_auto_show` is set to true allowing ajax requests to be shown automatically in the Debugbar. + | Changing `ajax_handler_auto_show` to false will prevent the Debugbar from reloading. */ 'capture_ajax' => true,