holystix / error-reporter
Reporting exceptions over HTTP to remote address
v1.0.3
2018-06-20 14:45 UTC
README
- Require package
composer require cube-agency/error-reporter
- Update .env file with relevant API url and key
ERROR_REPORTER_API_URL=xxx
ERROR_REPORTER_API_KEY=yyy
- Register service provider in
config/app.php
(for Laravel 5.4 and older )
'providers' => [
CubeAgency\ErrorReporter\ErrorReporterServiceProvider::class
- Bind exception handler in
bootstrap/app.php
$app->singleton(
Illuminate\Contracts\Debug\ExceptionHandler::class,
CubeAgency\ErrorReporter\Exceptions\Handler::class
);
- Override package config default values by creating a config file in
config/error-reporter.php