Project Configuration

After extracting the project to the location of your choice in your file manager. Change the configuration in the .env file.

  • APP_URL is your domain name followed by a relative path.
  • APP_DEBUG should be set to false In production.
  • APP_ENV should also be set to production.

Configure the database according to the credentials you specified in the setup database.

Configure the mail configuration

  • MAIL_MAILER: This variable specifies the mail driver to use. Laravel supports various mail drivers, such as “smtp”, “sendmail”, “mailgun”, “ses”, etc. When left empty, Laravel will use the default mail driver, which is usually “smtp”.
  • MAIL_HOST: This variable specifies the SMTP server host address you want to use to send emails. For example, if you’re using Gmail’s SMTP server, you would set it to smtp.gmail.com.
  • MAIL_PORT: This variable specifies the port number of the SMTP server. The default SMTP port is 25, but in this case, it’s set to 2525.
  • MAIL_USERNAME: This variable is used to specify the email address (username) to authenticate with the SMTP server.
  • MAIL_PASSWORD: This variable is used to specify the password associated with the MAIL_USERNAME to authenticate with the SMTP server.
  • MAIL_ENCRYPTION: This variable sets the encryption protocol to use when connecting to the SMTP server. In this case, it’s set to “tls” (Transport Layer Security). Other possible values are “ssl” or leaving it empty for no encryption.
  • MAIL_FROM_ADDRESS: This variable specifies the default email address that will be used as the “from” address for all outgoing emails.
  • MAIL_FROM_NAME: This variable sets the name associated with the MAIL_FROM_ADDRESS when sending emails.