deferdie/exception

The clients of the ExceptionLogger deferdie ExceptionLogger

v0.1.0 2018-03-10 14:11 UTC

This package is auto-updated.

Last update: 2024-11-18 22:41:13 UTC


README

Install

composer require deferdie/exception

Register service provider

ExceptionLogger\ClientExceptionLoggerServiceProvider::class,

Register alias

'ClientException' => ExceptionLogger\Facades\ClientExceptionLoggerFacade::class,

Add to Handler.php

use Exception;

ClientException::log($exception);

Add to .env file

EXCEPTION_LOGGER=http://exceptionlogger.test
EXCEPTION_LOGGER_CLIENT_ID=1
EXCEPTION_LOGGER_CLIENT_SECRET=[your application secret]
EXCEPTION_LOGGER_PROJECT_ID=1