Mailpit
Mailpit catches every email sent by your development code, which is very helpful to test email templates and flows.
The web panel is available at https://mails.test (it follows your Valet domain, e.g. mails.local after valet domain local).
Enable Mailpit:
valet start mailpit
Disable Mailpit:
valet stop mailpit
SMTP credentials for Mailpit
MAIL_MAILER=smtp
MAIL_HOST=127.0.0.1
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
Redis
Redis is installed automatically and listens on the default port 6379.
Enable Redis:
valet start redis
Disable Redis:
valet stop redis
IDE support
Open the current directory (or a given folder) in your favourite editor:
| Editor | Command |
|---|---|
| PhpStorm | valet ps [folder] |
| Visual Studio Code | valet code [folder] |
| Atom | valet atom [folder] |
| Sublime Text | valet subl [folder] |
Extensions
Any PHP file placed in ~/.config/valet/Extensions is loaded on every valet call, so you can register your own commands.