2017 © Pedro Peláez
 

library exception_handler

An exception handler for Laravel 5 websites.

image

gustavtrenwith/exception_handler

An exception handler for Laravel 5 websites.

  • Thursday, October 26, 2017
  • by gustavtrenwith
  • Repository
  • 0 Watchers
  • 1 Stars
  • 198 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 4 % Grown

The README.md

Exception Handler

An exception handler for Laravel websites that will catch and forward exception via email to the website administrator., (*1)

Server Requirements

The following packages need to be installed on the server:, (*2)

git
composer
php 7.1
nginx

Installation with Composer

Run the following command in your project to add this package:, (*3)

composer require gustavtrenwith/exception_handler

Then run composer update., (*4)

Register Service Provider and Facade

Register the service providers and Facades in config/app.php., (*5)

GustavTrenwith\ExceptionHandler\ExceptionHandlerServiceProvider::class,

```php 'ExceptionHandler' => GustavTrenwith\ExceptionHandler\ExceptionHandlerFacade::class,, (*6)


Now you can use the `ExceptionHandler` facade anywhere in your application. ## Environment Setup You need to add the following to your .env file. Then you can easily disable the exception emails by changing the variable value to true.

DISABLE_EXCEPTION_EMAILS=false WEBMASTER_EMAIL=, (*7)


## View Setup You need to run the following command to setup the view file. ```bash php artisan vendor:publish --force

Exception Handler Setup

Now you are all set. Just paste the following line in the report() method in the app\Exceptions\Handler.php file., (*8)

\GustavTrenwith\ExceptionHandler\ExceptionHandler::handle($exception, env('WEBMASTER_EMAIL', ''));

Feedback

For any questions or suggestions, feel free to contact me on gtrenwith@gmail.com, (*9)

The Versions

26/10 2017

dev-master

9999999-dev

An exception handler for Laravel 5 websites.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel php exception handler gustavtrenwith

26/10 2017

1.0.0

1.0.0.0

An exception handler for Laravel 5 websites.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel php exception handler gustavtrenwith