cube-agency/error-reporter

Reporting exceptions over HTTP to remote address

v1.0.3 2018-06-20 14:45 UTC

This package is auto-updated.

Last update: 2024-11-15 00:08:14 UTC


README

  1. Require package
composer require cube-agency/error-reporter
  1. Update .env file with relevant API url and key
ERROR_REPORTER_API_URL=xxx
ERROR_REPORTER_API_KEY=yyy
  1. Register service provider in config/app.php (for Laravel 5.4 and older )
'providers' => [


   CubeAgency\ErrorReporter\ErrorReporterServiceProvider::class
  1. Bind exception handler in bootstrap/app.php
$app->singleton(
    Illuminate\Contracts\Debug\ExceptionHandler::class,
    CubeAgency\ErrorReporter\Exceptions\Handler::class
);

  1. Override package config default values by creating a config file in config/error-reporter.php