2017 © Pedro PelĆ”ez
 

library exceptionmail

Envio de exeptions por email

image

edilton/exceptionmail

Envio de exeptions por email

  • Tuesday, June 7, 2016
  • by Edilton
  • Repository
  • 2 Watchers
  • 6 Stars
  • 87 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 2 % Grown

The README.md

exception_mail

Laravel package that sends mail reporting errors, (*1)

Instalação

  • composer require edilton/exceptionmail dev-master

Uso

  • Deve ser configurado o envio de email no Laravel Framework Veja aqui!., (*2)

  • Adiconar o Service Provider em config/app.php, (*3)

    'providers' => [
      //...
      ExceptionMail\ExceptionMailServiceProvider::class
    ]
    
  • Rode o seguinte comando no artisan:, (*4)

    php artisan vendor:publish
    
  • Edit o arquivo config\exeptionmailconfig.php ```php <?php

return [ 'app' => 'Nome da Aplicação', 'email' => 'seuemail@seudomninio.com', 'cc' => ['fulano@dominio.com'], 'active' => env('APP_ENV', 'production') ]; ```, (*5)

  • Altere o arquivo App\Exception\Handle.php para :, (*6)

    <?php
    
        namespace App\Exceptions;
    
        use Exception;
        use Illuminate\Database\Eloquent\ModelNotFoundException;
        use Symfony\Component\HttpKernel\Exception\HttpException;
        use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
        use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
        use ExceptionMail\Exceptions\ExceptionMailHandler;
    
        class Handler extends ExceptionMailHandler
        {
    

The Versions

07/06 2016

dev-master

9999999-dev

Envio de exeptions por email

  Sources   Download

MIT

The Requires

 

by Avatar Edilton