Download the PHP package larabug/larabug without Composer
On this page you can find all versions of the php package larabug/larabug. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package larabug
LaraBug
Laravel 6.x/7.x/8.x/9.x/10.x/11.x package for logging errors to larabug.com
Installation on laravel
You can install the package through Composer.
Then publish the config and migration file of the package using the vendor publish command.
And adjust config file (config/larabug.php
) with your desired settings.
Note: by default only production environments will report errors. To modify this edit your LaraBug configuration.
Installation on lumen
You can install the package through Composer.
Copy the config file (larabug.php
) to lumen config directory.
And adjust config file (config/larabug.php
) with your desired settings.
In bootstrap/app.php
you will need to:
-
Uncomment this line:
-
Register the larabug config file:
- Register larabug service provider:
Configuration variables
All that is left to do is to define two env configuration variables.
LB_KEY
is your profile key which authorises your account to the API.
LB_PROJECT_KEY
is your project API key which you've received when creating a project.
Get the variables at larabug.com
Reporting unhandled exceptions
You can use LaraBug as a log-channel by adding the following config to the channels
section in config/logging.php
:
After that you can add it to the stack section:
PS: If you're using lumen, it could be that you don't have the logging.php
file. So, you can use default logging file from
framework core and make changes above.
License
The LaraBug package is open source software licensed under the license MIT
All versions of larabug with dependencies
guzzlehttp/guzzle Version ^6.0.2 || ^7.0
illuminate/support Version ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0 || ^11.0
nesbot/carbon Version ^2.62.1 || ^3.0