You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a package to integrate [PHP Debug Bar](https://github.com/php-debugbar/php-debugbar) with Laravel.
9
10
It includes a ServiceProvider to register the debugbar and attach it to the output. You can publish assets and configure it through Laravel.
10
11
It bootstraps some Collectors to work with Laravel and implements a couple custom DataCollectors, specific for Laravel.
11
-
It is configured to display Redirects and Ajax/Livewire Requests. (Shown in a dropdown)
12
-
Read [the documentation](http://phpdebugbar.com/docs/) for more configuration options.
12
+
It is configured to display Redirects and Ajax/Livewire Requests, which are shown in a dropdown.
13
+
Read the [documentation](https://php-debugbar.com/docs) for more configuration options.
13
14
14
15

15
16
16
17
> [!CAUTION]
17
18
> Use the DebugBar only in development. Do not use Debugbar on publicly accessible websites, as it will leak information from stored requests (by design).
18
19
19
20
> [!WARNING]
20
-
> It can also slow the application down (because it has to gather and render data). So when experiencing slowness, try disabling some of the collectors.
21
+
> It can also slow the application down (because it has to gather and render data). So when experiencing slowness, try disabling some of the collectors.
21
22
22
23
This package includes some custom collectors:
24
+
23
25
- QueryCollector: Show all queries, including binding + timing
24
26
- RouteCollector: Show information about the current Route.
25
27
- ViewCollector: Show the currently loaded views. (Optionally: display the shared data)
@@ -32,10 +34,12 @@ This package includes some custom collectors:
32
34
- CacheCollector: Display all cache events. (disabled by default)
33
35
34
36
Bootstraps the following collectors for Laravel:
37
+
35
38
- LogCollector: Show all Log messages
36
39
- SymfonyMailCollector for Mail
37
40
38
41
And the default collectors:
42
+
39
43
- PhpInfoCollector
40
44
- MessagesCollector
41
45
- TimeDataCollector (With Booting and Application timing)
@@ -52,7 +56,7 @@ Require this package with composer. It is recommended to only require the packag
52
56
composer require fruitcake/laravel-debugbar --dev
53
57
```
54
58
55
-
> Note: The package name has changed to `fruitcake/laravel-debugbar`. If you're using `barryvdh/laravel-debugbar`,
59
+
> Note: The package name has changed to `fruitcake/laravel-debugbar`. If you're using `barryvdh/laravel-debugbar`,
56
60
> you can safely replace this with the new package name: `composer remove barryvdh/laravel-debugbar --dev --no-scripts`
57
61
58
62
> Tip: Use 'composer require fruitcake/laravel-debugbar:"^4@beta" --dev' flag to try the new 4.x Beta version!
@@ -130,13 +134,13 @@ If you want you can add your own DataCollectors, through the Container or the Fa
The Dump extension will replace the [dump function](http://twig.sensiolabs.org/doc/functions/dump.html) to output variables using the DataFormatter. The Debug extension adds a `debug()` function which passes variables to the Message Collector,
182
+
The Dump extension will replace the [dump function](https://twig.symfony.com/doc/3.x/functions/dump.html) to output variables using the DataFormatter. The Debug extension adds a `debug()` function which passes variables to the Message Collector,
178
183
instead of showing it directly in the template. It dumps the arguments, or when empty; all context variables.
179
184
180
185
```twig
181
186
{{ debug() }}
182
187
{{ debug(user, categories) }}
183
188
```
184
189
185
-
The Stopwatch extension adds a [stopwatch tag](http://symfony.com/blog/new-in-symfony-2-4-a-stopwatch-tag-for-twig) similar to the one in Symfony/Silex Twigbridge.
190
+
The Stopwatch extension adds a [stopwatch tag](https://symfony.com/blog/new-in-symfony-2-4-a-stopwatch-tag-for-twig) similar to the one in Symfony/Silex Twigbridge.
0 commit comments