Setting up .env accordingly to infinity hosting

Here is the Laravel example env file with some comments with explanation.

# These are settings for your own application. Change to your own liking.
APP_NAME=(Your Application Name)
APP_ENV=production
APP_KEY=(generate this with php artisan key:generate on your own computer)
APP_DEBUG=false
APP_URL=http://yourdomain.example.com

# Depends on your preferred logging stack. Default should be fine.
LOG_CHANNEL=stack

# Create a database through the control panel and add the settings here. See: https://infinityfree.net/support/how-to-connect-with-mysql/
DB_CONNECTION=mysql
DB_HOST=sql123.epizy.com
DB_PORT=3306
DB_DATABASE=epiz_12345678_application
DB_USERNAME=epiz_12345678
DB_PASSWORD=accountpassword123

# Defaults should be fine. Edit to preference.
BROADCAST_DRIVER=log
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120

# InfinityFree doesn't offer Redis. You can use an external Redis host or skip this.
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

# You need to find your own mail provider for this. You can use Gmail or another provider of your choice.
MAIL_MAILER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=null
MAIL_FROM_NAME="${APP_NAME}"

# If you want to use something Amazon Web Services, enter the settings here.
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=

# If you want to use Pusher, you'll have to get a Pusher account yourself for the credentials.
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1

MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"

Essentially, we can only provide you with the settings for the DB_* configuration. Everything else is either to your taste or requires external services to work.

4 Likes