Before starting you must prepare the following:
- Laravel-based system / website that has been uploaded to hosting
- The domain's MX Record has been redirected to the hosting.
If you have prepared both of them, now proceed to the next stage, namely:
- Login to Laravel Files
You first log in to your Cpanel, if you have clicked the FILE MANAGER menu. Make sure you select the public_html folder or subdomain that has laravel installed.Find files .env.example. If you can't find it you can click settings and select Show Hidden File, you can right-click the file .env.example and then rename it to .env - Edit File .env
This file contains several configurations related to Laravel, please select the .env file after that click Edit - Send Laravel Email Via Gmail SMTP
Find the following script:then customize it with this script:In the MAIL_HOST section you can fill in with your domain name or your nameserver yes