Config Mailtrap in Laravel 8

Go to the website and signup by using your email

Select the signup method you can signup using google account, github etc.

Mailtrap Signup

I’ll signup by email So, after filling the signup form and checking the recaptcha, click on the confirmation mail that is sent on your email by mailtrap.

So, after confirming the account you will be land on your mailtrap dashboard.

Then, go into the My Inbox

Mailtrap Dashboard

Now, select the technology for which you use the mailtrap, we are using laravel so, select the laravel.

Copy this 6 lines of code and replace these lines in the .env file as it is like:


Save the .env file and clear the configurations. The mailtrap is configured successfully. Now you can receive mail to the mailtrap inbox.

php artisan optimize:clear

I hope it helps!



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Talha Maqsood

Skilled in Business Development, Back-End Web Development, GitHub, and Problem Solving with a Bachelor of Science — BS focused in Computer Science.