I got stuck on this error I trying to configure SMTP mail on laravel

here is my configuration on .env file

This is Solved this Error
your mail.php on config you declare host as smtp.mailgun.org and port is 587 while on env is different. you need to change your mail.php to
if you desire to use mailtrap.Then run this command
php artisan config:cache
env() helper makes the job and there is no need to change values in mail.php. Just ensure that all email settings in .env file are correct
Latest posts by dharmendra K (see all)