2017 © Pedro Peláez
 

library laravel-error-mailer

Error Mailer for Laravel

image

alverated/laravel-error-mailer

Error Mailer for Laravel

  • Tuesday, August 16, 2016
  • by alverated
  • Repository
  • 1 Watchers
  • 3 Stars
  • 102 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Laravel-Error-Mailer

Error Mailer for Laravel 5.2, (*1)

Latest Stable Version Total Downloads, (*2)

Installation

Laravel Error Mailer can be installed via Composer by requiring the alverated/laravel-error-mailer package in your project's composer.json., (*3)

{
    "require": {
        "alverated/laravel-error-mailer": "dev-master"
    }
}

Register the service provider with the application. Open up config/app.php and find the providers key., (*4)

'providers' => [
    // ...
    Alverated\LaravelErrorMailer\ErrorMailerServiceProvider::class,
],

Publish the configurations Run this on the command line from the root of your project., (*5)

$ php artisan vendor:publish

A configuration and blade file will be publish to config/laravel-error-mailer.php and views/vendor/mailer.blade.php. Update your settings in the generated configuration file., (*6)

Usage

Open app/Exceptions/Handler.php and import Alverated\LaravelErrorMailer\ErrorMailer, (*7)

//...
use Alverated\LaravelErrorMailer\ErrorMailer;

and add these two lines of codes to public function report(Exception $e) below parent::report($e);, (*8)

public function report(Exception $e)
{
    parent::report($e);

    // add this code
    if ($this->shouldReport($e)) {
        $err = new ErrorMailer($e);
        $err->sendError();
    }
}

Note

Add this to your composer.json if you're using any of these drivers, (*9)

{
    "require": {
        "guzzlehttp/guzzle": "~5.3|~6.0",
        "aws/aws-sdk-php": "~3.0"
    }
}

The Versions

16/08 2016

dev-master

9999999-dev

Error Mailer for Laravel

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Alver G. Noquiao

framework laravel error mailer

11/07 2016

v1.0.0

1.0.0.0

Error Mailer for Laravel

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Alver G. Noquiao

framework laravel error mailer

01/07 2016

dev-development

dev-development

Error Mailer for Laravel

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Alver G. Noquiao

framework laravel error mailer