lardebug/lardebug

Installs: 244

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

Language:JavaScript

1.1.11 2022-11-24 07:45 UTC

This package is auto-updated.

Last update: 2024-04-24 10:54:27 UTC


README

License

Installation

You can install the package through Composer.

composer require lardebug/lardebug

Laravel without auto-discovery:

If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php

in file config\app.php add this line to providers

 'providers' => [
     /* */
     \LarDebug\ServiceProvider::class,
     /* */
 ]

Usage

Terminal

php artisan lardebug:serve

In Browser

open http://localhost:4560

Customize

php artisan vendor:publish --provider="LarDebug\ServiceProvider"

And adjust config file (config/lardebug.php) with your desired settings.

return [
    'enabled' => true // if you want to disable lardebug set to false 😭
    'server' => [
        'host' => 'localhost',
        'port' => 4560, // Change to any port as you want 👍
    ],
];

Send message to server immediately with Facade

    use LarDebug\Facade\LarDebug;
    /*....*/
    LarDebug::log("message");
    /*....*/

also it works fine with laravel apis

add messages to request

    Log::debug("message");

License

The larabug package is open source software licensed under the license MIT