Solution :
Your mail.php on the config you have declared the host as smtp.mailgun.org and the port is 587 while on the env is different. So you need to change the mail.php as shown below:
'host' => env('MAIL_HOST', 'mailtrap.io'),
'port' => env('MAIL_PORT', 2525),
if you want to use the mailtrap. Then run below command
php artisan config:cache
OR
I can see that you have all the settings right. You just need to end your local web server and start it again with the below command
php artisan serve
Every time you change the .env
file, you just need to restart your server for your new options to start taking effect.
Or just clear and cache the configuration with below command.
php artisan config:cache
I hope the above solutions will help you.