https://github.com/marcogermani87/filament-email-demo
Log emails in your Filament project
https://github.com/marcogermani87/filament-email-demo
email email-log filament laravel php
Last synced: 3 months ago
JSON representation
Log emails in your Filament project
- Host: GitHub
- URL: https://github.com/marcogermani87/filament-email-demo
- Owner: marcogermani87
- Created: 2024-04-29T14:27:16.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-07T19:37:54.000Z (7 months ago)
- Last Synced: 2025-01-09T22:25:56.956Z (5 months ago)
- Topics: email, email-log, filament, laravel, php
- Language: PHP
- Homepage: https://filament-email-demo.marcogermani.it
- Size: 1.82 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
![]()
[](https://packagist.org/packages/rickdbcn/filament-email)
[](https://github.com/rickdbcn/filament-email/actions?query=workflow%3Arun-tests+branch%3Amain)
[](https://github.com/rickdbcn/filament-email/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain)
[](https://packagist.org/packages/rickdbcn/filament-email)![]()
Log all outgoing emails in your Laravel project within your Filament panel. You can also resend emails with 1-click in case your recipient hasn't received your email.
## Application ENV
| Package | Filament | Laravel | Apache | PHP | MySQL |
| ------------- | ------------- | ------------- | -------------| -------------| -------------|
| 1.x | 3.x | 11.x | 2.4.x | 8.3.6 + FPM | 8.x |## Installation
Enable docker .env config:
```bash
cp .env.production .env
```Build and start docker containers:
```bash
docker compose --profile=prod up -d
```Enable application .env config:
```bash
cp src/.env.example src/.env
```Install dependencies:
```bash
docker compose exec php bash -c "cd ../ && composer install"
```Install application data:
```bash
docker compose exec php bash -c "cd .. && php -d memory_limit=-1 artisan demo:install"
```Refresh application data:
```bash
docker compose exec php bash -c "cd .. && php -d memory_limit=-1 artisan demo:refresh"
```You're ready to go! Visit the url http://localhost:8001 in your browser, and login with:
- **Username:** [email protected]
- **Password:** 123Stella@## Reverse proxy for production
Configuration for apache2 with Let's Encrypt:
```apacheconf
ServerName filament-email-demo.example.com
DocumentRoot /path/to/application/src/public/
ErrorLog ${APACHE_LOG_DIR}/filament-email-demo.example.com-error.log
CustomLog ${APACHE_LOG_DIR}/filament-email-demo.example.com-access.log combinedRewriteEngine on
RewriteCond %{SERVER_NAME} =filament-email-demo.example.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
ServerName filament-email-demo.example.com
DocumentRoot /var/www/filament-email-demo/src/public/
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:8001/
ProxyPassReverse / http://127.0.0.1:8001/ErrorLog ${APACHE_LOG_DIR}/filament-email-demo.example.com-ssl-error.log
CustomLog ${APACHE_LOG_DIR}/filament-email-demo.example.com-ssl-access.log combinedSSLCertificateFile /etc/letsencrypt/live/filament-email-demo.example.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/filament-email-demo.example.com/privkey.pemInclude /etc/letsencrypt/options-ssl-apache.conf
```
## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Credits
- [Marco Germani](https://github.com/marcogermani87)
- [All Contributors](../../contributors)