yayabouda
yayabouda

Reputation: 61

How can I install debugbar in Laravel?

( ! ) 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

Answers (3)

developers ukwelys
developers ukwelys

Reputation: 141

Navigate to your project folder and paste in the following

composer require barryvdh/laravel-debugbar --dev

Upvotes: 4

Shabeer K
Shabeer K

Reputation: 1617

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

Upvotes: 12

sharad shinde
sharad shinde

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

Related Questions