- Download Mailhog binary:
wget https://github.com/mailhog/MailHog/releases/download/v1.0.0/MailHog_linux_amd64 -O mailhog
chmod +x mailhog
- Start Mailhog:
./mailhog
- Configure Laravel to send emails to Mailhog in
.env
MAIL_DRIVER=smtp
MAIL_HOST=127.0.0.1
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
- Send mails and review them in Mailhog at localhost:8025