{"id":33960341,"url":"https://github.com/tompec/laravel-email-log","last_synced_at":"2026-04-01T20:45:38.334Z","repository":{"id":43660481,"uuid":"231732412","full_name":"tompec/laravel-email-log","owner":"tompec","description":"A Laravel package to log emails sent to your users","archived":false,"fork":false,"pushed_at":"2024-05-23T01:01:36.000Z","size":45,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-12-14T10:28:06.106Z","etag":null,"topics":["email","laravel","logging"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tompec.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-04T08:30:43.000Z","updated_at":"2020-04-01T02:16:09.000Z","dependencies_parsed_at":"2022-08-24T14:36:58.618Z","dependency_job_id":null,"html_url":"https://github.com/tompec/laravel-email-log","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/tompec/laravel-email-log","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tompec%2Flaravel-email-log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tompec%2Flaravel-email-log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tompec%2Flaravel-email-log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tompec%2Flaravel-email-log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tompec","download_url":"https://codeload.github.com/tompec/laravel-email-log/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tompec%2Flaravel-email-log/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31291796,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T13:12:26.723Z","status":"ssl_error","status_checked_at":"2026-04-01T13:12:25.102Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","laravel","logging"],"created_at":"2025-12-12T21:52:54.736Z","updated_at":"2026-04-01T20:45:38.327Z","avatar_url":"https://github.com/tompec.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A Laravel package to log emails sent to your users\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/tompec/laravel-email-log.svg?style=flat-square)](https://packagist.org/packages/tompec/laravel-email-log)\n[![Build Status](https://img.shields.io/travis/tompec/laravel-email-log/master.svg?style=flat-square)](https://travis-ci.org/tompec/laravel-email-log)\n[![Quality Score](https://img.shields.io/scrutinizer/g/tompec/laravel-email-log.svg?style=flat-square)](https://scrutinizer-ci.com/g/tompec/laravel-email-log)\n[![Coverage](https://img.shields.io/scrutinizer/coverage/g/tompec/laravel-email-log?style=flat-square)](https://scrutinizer-ci.com/g/tompec/laravel-email-log)\n[![StyleCI](https://styleci.io/repos/231732412/shield)](https://styleci.io/repos/231732412)\n[![Total Downloads](https://img.shields.io/packagist/dt/tompec/laravel-email-log.svg?style=flat-square)](https://packagist.org/packages/tompec/laravel-email-log)\n\n`laravel-email-log` logs outgoing emails sent to your users.\nIf you use MailGun, you can also track deliveries, failures, opens and clicks.\n\n## Installation\n\nInstall the package via composer:\n\n```bash\ncomposer require tompec/laravel-email-log\n```\n\nIf you use Laravel 5.5+, the package will register itself, otherwise, add this to your `config/app.php`\n\n``` php\n'providers' =\u003e [\n    Tompec\\EmailLog\\EmailLogServiceProvider::class,\n],\n```\n\nRun the migration:\n\n```bash\nphp artisan migrate\n```\n\n## Configuration (optional)\n\nPublish the configuration file:\n\n```bash\nphp artisan vendor:publish --provider=\"Tompec\\EmailLog\\EmailLogServiceProvider\"\n```\n\nHere's the content of the config file.\n```php\nreturn [\n    /*\n     * This is the name of the table that will be created by the migration.\n     */\n    'table_name' =\u003e 'email_log',\n\n    /*\n     * The model that will be attached to the email logs.\n     */\n    'recipient_model' =\u003e \\App\\User::class,\n\n    /*\n     * This is the name of the column that the `recipient_model` uses to store the email address.\n     */\n    'recipient_email_column' =\u003e 'email',\n\n    /*\n     * Whether or not you want to log emails that don't belong to any model\n     */\n    'log_unknown_recipients' =\u003e true,\n];\n```\n\nIf you want to get all the email logs for your a user, add this to your `App\\User.php` file (or the model you chose as your `recipient_model`):\n\n```php\npublic function email_logs()\n{\n    return $this-\u003emorphMany(\\Tompec\\EmailLog\\EmailLog::class, 'recipient');\n}\n```\n\nThen you can do `App\\User::find(1)-\u003eemail_logs` to retreive all the emails that this user has received.\n\n## Webhooks\n\nIf you use [Mailgun](https://www.mailgun.com/), you can track these 4 events: `delivered `, `opened`, `clicked`, `permanent_fail`.\n\nAdd the following url [as a new webhook](https://documentation.mailgun.com/en/latest/user_manual.html#webhooks).\n\n``` bash\nhttps://www.yourdomain.com/email-log/mailgun\n```\n\n## Laravel Nova\nIf you use [Laravel Nova](https://nova.laravel.com/), you can create a new resource to view the content of the table:\n\n``` bash\nphp artisan nova:resource EmailLog\n```\nThen paste the content of [this gist](https://gist.github.com/tompec/53108f575aa277102fdcca5e14543c06) for a quick setup.\n\n## Testing\n\n``` bash\ncomposer test\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Security\n\nIf you discover any security related issues, please email laravel-email-log@mail.tompec.com instead of using the issue tracker.\n\n## Credits\n\n- [Thomas Petracco](https://www.tompec.com/) ([GitHub](https://github.com/tompec))\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftompec%2Flaravel-email-log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftompec%2Flaravel-email-log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftompec%2Flaravel-email-log/lists"}