I need to insert the email data that goes in the .env, directly in the code and not in the .env. However, I can’t figure out which file is getting these settings.
I am using the following line of code just like the laravel 10 documentation
$status = Password::sendResetLink(
$request->only('email')
);
Can anyone tell me which file contains the .env settings to send this email?
2
Answers
Simply testing email server using
https://mailtrap.io/signin
dashboard image.
You can view the dashboard. Have you not viewed the project -> Create a new project. click setting button action have
sample image
Go Code Samples php select dropdown click and select laravel9+
configuration copy image
Right side copy button can copy the configuration and paste .env file
configuration image
Change this confgurations
Usually, email config can be found at
config/mail.php
Laravel email configs