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
### For Laravel 4, please use the [1.8 branch](https://github.com/barryvdh/laravel-debugbar/tree/1.8)!
6
+
### For Laravel < 5.5, please use the [2.4 branch](https://github.com/barryvdh/laravel-debugbar/tree/2.4)!
7
7
8
8
This is a package to integrate [PHP Debug Bar](http://phpdebugbar.com/) with Laravel 5.
9
9
It includes a ServiceProvider to register the debugbar and attach it to the output. You can publish assets and configure it through Laravel.
@@ -47,13 +47,16 @@ Require this package with composer:
47
47
composer require barryvdh/laravel-debugbar
48
48
```
49
49
50
-
After updating composer, add the ServiceProvider to the providers array in config/app.php
50
+
Laravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.
51
+
52
+
The Debugbar will be enabled when `APP_DEBUG` is `true`.
51
53
52
-
> Laravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider
53
54
54
55
> If you use a catch-all/fallback route, make sure you load the Debugbar ServiceProvider before your own App ServiceProviders.
55
56
56
-
### Laravel 5.x:
57
+
### Laravel 5:
58
+
59
+
If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php
57
60
58
61
```php
59
62
Barryvdh\Debugbar\ServiceProvider::class,
@@ -65,7 +68,7 @@ If you want to use the facade to log messages, add this to your facades in app.p
65
68
'Debugbar' => Barryvdh\Debugbar\Facade::class,
66
69
```
67
70
68
-
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`
71
+
The profiler is enabled by default, if you have APP_DEBUG=true. You can override that in the config (`debugbar.enabled`) or by setting `DEBUGBAR_ENABLED` in your `.env`. See more options in `config/debugbar.php`
69
72
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.
70
73
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)
0 commit comments