How to debug Laravel framework?

Laravel has its own debugging system.You can use built in dd() function.And there are several packages that can be used to debug laravel projects.Here are some links and hope that it will be helpful for you.

https://github.com/barryvdh/laravel-debugbar

http://laravel.io/forum/02-04-2014-package-laravel-debugbar


Also there is Google Chrome extension "PHP Console" service provider for Laravel https://github.com/barbushin/php-console-laravel


laravel telescope

https://github.com/laravel/telescope

in laracast you can find even a episodie about it

https://laracasts.com/series/laravel-from-scratch-2018/episodes/28


Recently I came to discover this amazing plugin that allows you to dump variables, trace requests, executions, views, controllers, queries, profile memory, execution time, etc., everything related to the current rendered page. Very helpful :

https://laravel-news.com/laravel-debugbar

You can install it via composer:

composer require barryvdh/laravel-debugbar --dev

Then add it to your service providers array in /config/app.php

The Debugbar will start working inmediately if the debug mode is turned on: To do it so, you just need to modify in your config/app.php or .env file the debug_mode to true.

If you wish to use the dump methods in the debugbar console, you need to include the alias to your /config/app.php array:

'Debugbar' => Barryvdh\Debugbar\Facade::class,

Now you can start dumping variables like this:

\Debugbar::info($variable);

Pretty cool plugin. Cheers!