lardebug / lardebug
Installs: 244
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Language:JavaScript
Requires
- php: >=7.2
- guzzlehttp/guzzle: ^6.3.1|^7.0.1
Requires (Dev)
- maximebf/debugbar: 1.*
- mockery/mockery: ^1.4.2
- nunomaduro/collision: ^5.0
- phpunit/phpunit: ^8.5.8|^9.3.3
README
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
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