Skip to content

Commit 8d49f95

Browse files
committed
Update for v3, l5.5
1 parent 3723bd1 commit 8d49f95

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

composer.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@
1010
}
1111
],
1212
"require": {
13-
"php": ">=5.5.9",
14-
"illuminate/support": "5.1.*|5.2.*|5.3.*|5.4.*|5.5.*",
15-
"symfony/finder": "~2.7|~3.0",
16-
"maximebf/debugbar": "~1.13.0"
13+
"php": ">=7.0",
14+
"maximebf/debugbar": "~1.14.0",
15+
"illuminate/support": "5.5.*",
16+
"symfony/debug": "~3.3",
17+
"symfony/finder": "~3.3"
1718
},
1819
"autoload": {
1920
"psr-4": {
@@ -23,9 +24,11 @@
2324
"src/helpers.php"
2425
]
2526
},
27+
"minimum-stability": "dev",
28+
"prefer-stable": true,
2629
"extra": {
2730
"branch-alias": {
28-
"dev-master": "2.4-dev"
31+
"dev-master": "3.0-dev"
2932
},
3033
"laravel": {
3134
"providers": [

readme.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
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-
### 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)!
77

88
This is a package to integrate [PHP Debug Bar](http://phpdebugbar.com/) with Laravel 5.
99
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:
4747
composer require barryvdh/laravel-debugbar
4848
```
4949

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`.
5153

52-
> Laravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider
5354

5455
> If you use a catch-all/fallback route, make sure you load the Debugbar ServiceProvider before your own App ServiceProviders.
5556
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
5760

5861
```php
5962
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
6568
'Debugbar' => Barryvdh\Debugbar\Facade::class,
6669
```
6770

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`
6972
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.
7073
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)
7174

0 commit comments

Comments
 (0)