Download the PHP package hajmo/larabug without Composer
On this page you can find all versions of the php package hajmo/larabug. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hajmo/larabug
More information about hajmo/larabug
Files in hajmo/larabug
Informations about the package larabug
LaraBug
Laravel 6.x/7.x/8.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 artisan.
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 2 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 receive when creating a project.
Get these 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 have configured the LaraBug channel you can add it to the stack section:
PS: If you are using lumen, maybe you doesn'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