{"id":21542570,"url":"https://github.com/bastinald/laravel-exception-emailer","last_synced_at":"2026-05-19T11:10:56.475Z","repository":{"id":62492209,"uuid":"391837661","full_name":"bastinald/laravel-exception-emailer","owner":"bastinald","description":"Laravel exception message \u0026 stack trace emailer.","archived":false,"fork":false,"pushed_at":"2021-09-11T03:08:53.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-25T01:05:58.660Z","etag":null,"topics":["email","emailer","exception","laravel"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bastinald.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-08-02T06:25:35.000Z","updated_at":"2023-03-02T14:44:44.000Z","dependencies_parsed_at":"2022-11-02T11:16:26.252Z","dependency_job_id":null,"html_url":"https://github.com/bastinald/laravel-exception-emailer","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bastinald%2Flaravel-exception-emailer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bastinald%2Flaravel-exception-emailer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bastinald%2Flaravel-exception-emailer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bastinald%2Flaravel-exception-emailer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bastinald","download_url":"https://codeload.github.com/bastinald/laravel-exception-emailer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244130283,"owners_count":20402753,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["email","emailer","exception","laravel"],"created_at":"2024-11-24T05:10:00.132Z","updated_at":"2026-05-19T11:10:46.463Z","avatar_url":"https://github.com/bastinald.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Exception Emailer\n\nThis package will send an email any time an exception happens in your Laravel application. The email contains the exception message and a full stack trace. You can specify which email addresses to send to, as well as which environments the emails should be sent in.\n\n## Documentation\n\n- [Installation](#installation)\n- [Publishing Config](#publishing-config)\n\n## Installation\n\nRequire the package:\n\n```console\ncomposer require bastinald/laravel-exception-emailer\n```\n\nConfigure your `.env` MAIL settings, for example:\n\n```env\nMAIL_MAILER=smtp\nMAIL_HOST=localhost\nMAIL_PORT=1025\nMAIL_USERNAME=null\nMAIL_PASSWORD=null\nMAIL_ENCRYPTION=null\nMAIL_FROM_ADDRESS=info@laravel.test\nMAIL_FROM_NAME=\"${APP_NAME}\"\n```\n\nDispatch the `EmailException` job in the `Handler::register` method:\n\n```php\nnamespace App\\Exceptions;\n\nuse Bastinald\\LaravelExceptionEmailer\\Jobs\\EmailException;\nuse Illuminate\\Foundation\\Exceptions\\Handler as ExceptionHandler;\nuse Throwable;\n\nclass Handler extends ExceptionHandler\n{\n    public function register()\n    {\n        $this-\u003ereportable(function (Throwable $e) {\n            EmailException::dispatch($e-\u003egetMessage(), $this-\u003erenderExceptionContent($e));\n        });\n    }\n}\n```\n\nPublish the config file:\n\n```console\nphp artisan vendor:publish --tag=laravel-exception-emailer:config\n```\n\nSet the emails \u0026 environments in the published config file:\n\n```php\n'emails' =\u003e 'admin@example.com',\n'environments' =\u003e 'production',\n```\n\n## Publishing Config\n\nCustomize the package configuration by publishing the config file:\n\n```console\nphp artisan vendor:publish --tag=laravel-exception-emailer:config\n```\n\nNow you can easily change things like the email addresses and exception environments.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbastinald%2Flaravel-exception-emailer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbastinald%2Flaravel-exception-emailer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbastinald%2Flaravel-exception-emailer/lists"}