Skip to content

Commit a8f7980

Browse files
authored
Add note about package discovery
1 parent b60825e commit a8f7980

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

readme.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
[![Latest Stable Version](https://poser.pugx.org/barryvdh/laravel-debugbar/version.png)](https://packagist.org/packages/barryvdh/laravel-debugbar)
44
[![Total Downloads](https://poser.pugx.org/barryvdh/laravel-debugbar/d/total.png)](https://packagist.org/packages/barryvdh/laravel-debugbar)
55

6+
### Note for v3: Debugbar is now enabled by requiring the package, but still needs APP_DEBUG=true by default!
7+
68
### For Laravel < 5.5, please use the [2.4 branch](https://github.com/barryvdh/laravel-debugbar/tree/2.4)!
79

810
This is a package to integrate [PHP Debug Bar](http://phpdebugbar.com/) with Laravel 5.
@@ -42,20 +44,19 @@ It also provides a Facade interface for easy logging Messages, Exceptions and Ti
4244

4345
## Installation
4446

45-
Require this package with composer:
47+
Require this package with composer. It is recommended to only require the package for development.
4648

4749
```shell
48-
composer require barryvdh/laravel-debugbar
50+
composer require barryvdh/laravel-debugbar --dev
4951
```
5052

5153
Laravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.
5254

5355
The Debugbar will be enabled when `APP_DEBUG` is `true`.
5456

55-
5657
> If you use a catch-all/fallback route, make sure you load the Debugbar ServiceProvider before your own App ServiceProviders.
5758
58-
### Laravel 5:
59+
### Laravel 5.5+:
5960

6061
If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php
6162

0 commit comments

Comments
 (0)