LaravelPackages.net
Acme Inc.
Toggle sidebar
webxid/laravel-debug-helpers

Debug helper for Laravel Framework.

92
0
v2.0.1
About webxid/laravel-debug-helpers

webxid/laravel-debug-helpers is a Laravel package for debug helper for laravel framework.. It currently has 0 GitHub stars and 92 downloads on Packagist (latest version v2.0.1). Install it with composer require webxid/laravel-debug-helpers. Discover more Laravel packages by webxid or browse all Laravel packages to compare alternatives.

Last updated

Install

Add the next things

  1. Run composer require webxid/laravel-debug-helpers --dev in command line

  2. File /artisan, after define('LARAVEL_START', microtime(true));

if (file_exists(__DIR__.'/vendor/webxid/laravel-debug-helpers/src/helpers.php')) {
    require __DIR__.'/vendor/webxid/laravel-debug-helpers/src/helpers.php';
}
  1. File /public/index.php, after define('LARAVEL_START', microtime(true));
if (file_exists(__DIR__.'/../vendor/webxid/laravel-debug-helpers/src/helpers.php')) {
    require __DIR__.'/../vendor/webxid/laravel-debug-helpers/src/helpers.php';
}

How To Use

This lib halps to improve the default Laravel debug stuff:

  • Adds a function call place Route for dd() into the and of print

  • Adds redirect place into a page headers

  • _dd() write a dump into storage/logs/laravel.log. It replaces the content (by default) or adds a string in the end of the file (check the function parameters)

  • _trace() halps to understand, how a script comes in some place of code

Comments