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
Copy file name to clipboardExpand all lines: readme.md
+8-9Lines changed: 8 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ It also provides a Facade interface for easy logging Messages, Exceptions and Ti
43
43
44
44
Require this package with composer:
45
45
46
-
```
46
+
```shell
47
47
composer require barryvdh/laravel-debugbar
48
48
```
49
49
@@ -52,40 +52,39 @@ After updating composer, add the ServiceProvider to the providers array in confi
52
52
53
53
### Laravel 5.x:
54
54
55
-
```
55
+
```php
56
56
Barryvdh\Debugbar\ServiceProvider::class,
57
57
```
58
58
59
59
If you want to use the facade to log messages, add this to your facades in app.php:
60
60
61
-
```
61
+
```php
62
62
'Debugbar' => Barryvdh\Debugbar\Facade::class,
63
63
```
64
64
65
-
66
65
The profiler is enabled by default, if you have app.debug=true. You can override that in the config (`debugbar.enabled`). See more options in `config/debugbar.php`
67
66
You can also set in your config if you want to include/exclude the vendor files also (FontAwesome, Highlight.js and jQuery). If you already use them in your site, set it to false.
68
67
You can also only display the js or css vendors, by setting it to 'js' or 'css'. (Highlight.js requires both css + js, so set to `true` for syntax highlighting)
69
68
70
69
Copy the package config to your local config with the publish command:
To change the configuration, copy the file to your config folder and enable it:
87
86
88
-
```
87
+
```php
89
88
$app->configure('debugbar');
90
89
```
91
90
@@ -180,14 +179,14 @@ Add the following extensions to your TwigBridge config/extensions.php (or regist
180
179
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,
181
180
instead of showing it directly in the template. It dumps the arguments, or when empty; all context variables.
182
181
183
-
```
182
+
```twig
184
183
{{ debug() }}
185
184
{{ debug(user, categories) }}
186
185
```
187
186
188
187
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.
0 commit comments