Reputation: 61
( ! ) Fatal error: Cannot redeclare measure() (previously declared in C:\wamp64\www\acellemailll\vendor\barryvdh\laravel-debugbar\src\helpers.php:77) in C:\wamp64\www\acellemailll\app\Helpers\helpers.php on line 427
Upvotes: 5
Views: 23812
Reputation: 141
Navigate to your project folder and paste in the following
composer require barryvdh/laravel-debugbar --dev
Upvotes: 4
Reputation: 1617
Open the terminal and to do like this as your wise
1) Install DebugBar
A) Install the debuger 2.4 (Documentation)
composer require barryvdh/laravel-debugbar:~2.4
You will also need to add in providers
array in config/app.php
:
Barryvdh\Debugbar\ServiceProvider::class
B) Install the debuger 3.0 (Documentation)
composer require barryvdh/laravel-debugbar --dev
2) After that, you need to update the composer
composer update
3) Clear cache and config
php artisan cache:clear
php artisan config:cache
4) Then after you need to add a line to .env
file
APP_DEBUG=true
Upvotes: 12
Reputation: 51
composer require barryvdh/laravel-debugbar
open config/app.php and inside the ‘providers’ array add:
'Barryvdh\Debugbar\ServiceProvider',
https://laravel-news.com/laravel-debugbar
Upvotes: 1