Skip to content

marcogermani87/filament-email-demo

Repository files navigation

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads Snyk Security License

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:

cp .env.production .env

Build and start docker containers:

docker-compose --profile=prod up -d

Enable application .env config:

cp src/.env.example src/.env

Install dependencies:

docker-compose exec php bash -c "cd ../ && composer install"

Run migrations with seeds:

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:

Reverse proxy for production

Configuration for apache2 with Let's Encrypt:

<VirtualHost *:80>

    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 combined

    RewriteEngine on
    RewriteCond %{SERVER_NAME} =filament-email-demo.example.com
    RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]

</VirtualHost>

<IfModule mod_ssl.c>
    <VirtualHost *:443>

        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 combined

        SSLCertificateFile /etc/letsencrypt/live/filament-email-demo.example.com/fullchain.pem
        SSLCertificateKeyFile /etc/letsencrypt/live/filament-email-demo.example.com/privkey.pem

        Include /etc/letsencrypt/options-ssl-apache.conf

    </VirtualHost>
</IfModule>

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits