- Download MailHog: https://github.com/mailhog/MailHog/releases/download/v1.0.0/MailHog_windows_amd64.exe
- Move it to `C:\laragon\usr\bin\MailHog.exe
- Open Laragon's Procfile (Menu > Laragon > Procfile) and add these lines: MailHog: MailHog.exe autorun MailHog Admin: http://localhost:8025 autorun
- Stop Laragon
- Close/Edit completely
- Start Laragon
- Enable requests on windows firewall when laragon is up for the first time after change the procfile
MAIL_MAILER=smtp MAIL_HOST=localhost MAIL_PORT=1025 MAIL_USERNAME=null MAIL_PASSWORD=null MAIL_ENCRYPTION=null
- Open mailhog http://localhost:8025/# on your browser
- Click on CONNECTED
- Enable notifications
- Send
Mail::to('[email protected]')->send(new YourMailableClass([]));
:)
Thank you man!!!