无法解析 [Illuminate\Mail\TransportManager] 的 NULL 驱动程序。 laravel 6 驱动程序 smto gmail
Unable to resolve NULL driver for [Illuminate\Mail\TransportManager]. in laravel 6 driver smto gmail
这是我的 .env 配置
MAIL_PORT=587
MAIL_USERNAME=myemail@gmail.com
MAIL_PASSWORD=mypassword
MAIL_ENCRYPTION=tls
有人有解决办法吗?
谢谢
I think you get value from .env file but the value was not got.I just
suggest first confirm your parameter was got value or not by using
TINKER.
php artisan tinker
并检查
环境('MAIL_PASSWORD')
If you don't got the value then try to clear cache by using given
commanad.
php artisan config:cache
php artisan config:clear
php artisan cache:clear
然后用 tinker 再试一次。
这是我的 .env 配置
MAIL_PORT=587
MAIL_USERNAME=myemail@gmail.com
MAIL_PASSWORD=mypassword
MAIL_ENCRYPTION=tls
有人有解决办法吗? 谢谢
I think you get value from .env file but the value was not got.I just suggest first confirm your parameter was got value or not by using TINKER.
php artisan tinker
并检查 环境('MAIL_PASSWORD')
If you don't got the value then try to clear cache by using given commanad.
php artisan config:cache
php artisan config:clear
php artisan cache:clear
然后用 tinker 再试一次。