( ! ) 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
3 Answers
Open the terminal and to do like this as your wise
1) Install DebugBar
- The DebugBar 2.4.x is for Laravel 5.4-
- The DebugBar 3.0.x is for Laravel 5.5+
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
Comments
composer require barryvdh/laravel-debugbar
open config/app.php and inside the ‘providers’ array add:
'Barryvdh\Debugbar\ServiceProvider',
...\acellemailll\app\Helpers\helpers.phpfile). You are re-declaring the global function namedmeasure()that is already defined by Laravel Debugbar package. You cannot do that -- it's basic PHP knowledge. Give your function another name... or get rid of Laravel Debugbar package so it does not introduce that function in first place.