Environment Configuration

Environment configuration requires many changes but just for the beginning we will need only several configurations:

Please follow exact step as shown below.

Applications Name & URL

These are the first config you have to change.

APP_NAME=Application Name i.e QuickRecruit, Something etc
APP_ENV=production
APP_URL=Your website url goes here

Database

Get the credentials from previously created database and add in the environment file as below

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=Your database name
DB_USERNAME=Your database username
DB_PASSWORD=Your database password

Mail Server

You must have to setup SMTP related settings. SMTP settings are used for email sending to candidates, contact and recruiter.

MAIL_DRIVER=smtp
MAIL_HOST=smtp.dummy.net
MAIL_PORT=SMTP PORT
MAIL_USERNAME=SMTP Username
MAIL_PASSWORD=SMTP Password
MAIL_ENCRYPTION=SMTP Protocol

Email are send against following in-app events:

  • 1

  • 2

  • 3

  • 4

  • 5

After making above changes your .env file should look like this:

Full list of environment variables

APP_NAME=Your Application Name
APP_ENV=production
APP_KEY=base64:xKp/YE0zHJhuzX8+/pQ6SMxorlBpbjaSHxLGCX59M9g=
APP_DEBUG=true
APP_URL=your app url
APP_PROJECT_VERSION=7
LOG_CHANNEL=stack
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=database name
DB_USERNAME=database user
DB_PASSWORD=database password
BROADCAST_DRIVER=pusher
CACHE_DRIVER=file
SESSION_DRIVER=file
SESSION_LIFETIME=120
QUEUE_DRIVER=sync
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_MAILER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=SMTP Username
MAIL_PASSWORD=SMTP Password
MAIL_ENCRYPTION=SMTP Protocol
MAIL_FROM_NAME="${APP_NAME}"
EMAIL_EXCEPTION_ENABLED=false
EMAIL_EXCEPTION_FROM="${MAIL_FROM_ADDRESS}"
EMAIL_EXCEPTION_CC=''
EMAIL_EXCEPTION_BCC=''
EMAIL_EXCEPTION_SUBJECT=''
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
ACTIVATION=true
ACTIVATION_LIMIT_TIME_PERIOD=24
ACTIVATION_LIMIT_MAX_ATTEMPTS=3
NULL_IP_ADDRESS=0.0.0.0
DEBUG_BAR_ENVIRONMENT=local
USER_RESTORE_CUTOFF_DAYS=31
USER_RESTORE_ENCRYPTION_KEY=
USER_LIST_PAGINATION_SIZE=50
DEFAULT_GRAVATAR_SIZE=80
DEFAULT_GRAVATAR_FALLBACK=http://c1940652.r52.cf0.rackcdn.com/51ce28d0fb4f442061000000/Screen-Shot-2013-06-28-at-5.22.23-PM.png
DEFAULT_GRAVATAR_SECURE=false
DEFAULT_GRAVATAR_MAX_RATING=g
DEFAULT_GRAVATAR_FORCE_DEFAULT=false
DEFAULT_GRAVATAR_FORCE_EXTENSION=jpg
DROPZONE_JS_CDN=https://cdnjs.cloudflare.com/ajax/libs/dropzone/5.4.0/dropzone.js
# Roles Default Models
ROLES_DEFAULT_ROLE_MODEL=jeremykenedy\LaravelRoles\Models\Role
ROLES_DEFAULT_PERMISSION_MODEL=jeremykenedy\LaravelRoles\Models\Permission
# Roles database information
ROLES_DATABASE_CONNECTION=null
# Roles Misc Settings
ROLES_DEFAULT_SEPARATOR='.'
# Roles GUI Settings
ROLES_GUI_ENABLED=true
ROLES_GUI_AUTH_ENABLED=true
ROLES_GUI_MIDDLEWARE_ENABLED=true
ROLES_GUI_MIDDLEWARE='role:admin'
ROLES_GUI_BLADE_EXTENDED='layouts.master'
ROLES_GUI_TITLE_EXTENDED='title'
ROLES_GUI_LARAVEL_ROLES_ENABLED=true
ROLES_GUI_DATATABLES_JS_ENABLED=false
ROLES_GUI_FLASH_MESSAGES_ENABLED=false
ROLES_GUI_BLADE_PLACEMENT = 'content'
ROLES_GUI_BLADE_PLACEMENT_CSS='role_template_styles'
ROLES_GUI_BLADE_PLACEMENT_JS='role_template_scripts'
ROLES_GUI_CARD_CLASSES = 'card-primary'
#Roles GUI Datatable CDN
enabledDatatablesJs = false
# NOTE: YOU CAN REMOVE THE KEY CALL IN app.blade.php IF YOU GET A POP UP AND DO NOT WANT TO SETUP A KEY FOR DEV
# Google Maps API v3 Key - https://developers.google.com/maps/documentation/javascript/get-api-key#get-an-api-key
GOOGLEMAPS_API_STATUS=false
GOOGLEMAPS_API_KEY=AIzaSyB5WQW9fdx6uzx85zLVwfq7mmHDTRmIYi8
# https://www.google.com/recaptcha/admin#list
ENABLE_RECAPTCHA=false
RE_CAP_SITE=YOURGOOGLECAPTCHAsitekeyHERE
RE_CAP_SECRET=YOURGOOGLECAPTCHAsecretHERE