The environment variables can be defined in the .env file in the project directory. A brand new laravel application comes with a .env.example and while installing we copy this file and rename it to .env and all the environment variables will be defined here.
Some of the examples of environment variables are APP_ENV, DB_HOST, DB_PORT, etc.