Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ramnzys/filament-email-log
This package provides a Filament resource to view all Laravel sent emails.
https://github.com/ramnzys/filament-email-log
admin-panel filament laravel-package
Last synced: 3 months ago
JSON representation
This package provides a Filament resource to view all Laravel sent emails.
- Host: GitHub
- URL: https://github.com/ramnzys/filament-email-log
- Owner: ramnzys
- License: mit
- Created: 2022-06-13T23:13:58.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-09T00:44:46.000Z (over 1 year ago)
- Last Synced: 2024-03-14T19:22:29.542Z (11 months ago)
- Topics: admin-panel, filament, laravel-package
- Language: PHP
- Homepage:
- Size: 56.6 KB
- Stars: 49
- Watchers: 4
- Forks: 17
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-filament - ramnzys/filament-email-log - A Filament resource to view all Laravel sent emails. (Integrations)
README

[](https://packagist.org/packages/ramnzys/filament-email-log)
[](https://github.com/ramnzys/filament-email-log/actions?query=workflow%3Arun-tests+branch%3Amain)
[](https://github.com/ramnzys/filament-email-log/actions?query=workflow%3A"Check+%26+fix+styling"+branch%3Amain)
[](https://packagist.org/packages/ramnzys/filament-email-log)This package provides a Filament resource to view all Laravel outgoing emails. It also provides a Model for the database stored emails.
## Installation
You can install the package via composer:
```bash
composer require ramnzys/filament-email-log
```You can publish and run the migrations with:
```bash
php artisan vendor:publish --tag="filament-email-log-migrations"
php artisan migrate
```You can publish the config file with:
```bash
php artisan vendor:publish --tag="filament-email-log-config"
```This is the contents of the published config file:
```php
return ['resource' => [
'group' => null,
'sort' => null,
],'keep_email_for_days' => 90,
];
```## Usage
This package will automatically register the `EmailResource`. You will be able to see it when you visit your Filament admin panel.
### Customization
**Group and sort order**. You can customize the navigation group for the `EmailResource` by publishing the configuration file and updating the `resource.group` and `resource.sort` values.
**Prunable model**. You can customize how many days to keep the email in the database by updating the `keep_email_for_days` value. Then you can use or schedule the command `artisan model:prune --model="Ramnzys\FilamentEmailLog\Models\Email"`. This will delete emails older than `keep_email_for_days` days old.
## Testing```bash
composer test
```## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Contributions are welcome. Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.
## Credits
- [Ramón E. Zayas](https://github.com/ramnzys)
- [All Contributors](../../contributors)## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.