Overview

The .env file located in application folder contains the run-time settings of your application. In it you can change the theme of your application to the one that suits your organization, Debugging level, database connections and mail settings

.env Sections

APP_ENV=local
APP_DEBUG=true
APP_DEBUGBAR=false
APP_KEY=SomeRandomString

DB_HOST=localhost
DB_DATABASE=stockawesome
DB_USERNAME=root
DB_PASSWORD=

CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync

MAIL_DRIVER=smtp
MAIL_HOST=mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_PRETEND=true
MAIL_ADDRESS=null
MAIL_NAME=null

COMPANY_NAME=<b>STOCK</b> AWESOME

RECORDS_VIEW = 20
SHOW_ADMINS =false

Database Settings

Set the database connection you want your application to use here

DB_HOST=localhost
DB_DATABASE=stockawesome
DB_USERNAME=root
DB_PASSWORD=

Debugging

Debugging information helps you to view errors when viewing the application instead of showing the oops page. enabling the APP_DEBUGBAR allows you to view queries per page if you need to optimize anything.

APP_ENV=local
APP_DEBUG=true
APP_DEBUGBAR=false
APP_KEY=46765744

Email Sending

If you need to set up email sending in your application you will have to enter your organizations mail setting here

MAIL_DRIVER=smtp
MAIL_HOST=mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_PRETEND=true
MAIL_ADDRESS=null
MAIL_NAME=null

Pagination

This allows you to set application wide pagination. This limits the number of records you view per table.

RECORDS_VIEW = 20

Show Admins

This allows you to view admins in the user table. This was put here to disable users from changing the login password in the demo.

SHOW_ADMINS =false

Company Name

Replace your company name here. Html is not allowed as of version 3.0

COMPANY_NAME=STOCK AWESOME