Skip to content

Edilton/exception_mail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

exception_mail

Laravel package that sends mail reporting errors

Instalação

  • composer require edilton/exceptionmail dev-master

Uso

  • Deve ser configurado o envio de email no Laravel Framework Veja aqui!.

  • Adiconar o Service Provider em config/app.php

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

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

    <?php

return [ 'app' => 'Nome da Aplicação', 'email' => '[email protected]', 'cc' => ['[email protected]'], 'active' => env('APP_ENV', 'production') ];



* Altere o arquivo  App\Exception\Handle.php para :
  ```php 
<?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
      {
  ```

About

Laravel package that sends mail reporting errors

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published