Answers for "access env laravel with process.env"

PHP
1

what is app_env in laravel

Laravel 5 uses .env file to configure your app. .env should not be committed on your repository, like github or bitbucket. On your local environment your .env will look like the following:

# .env
APP_ENV=local
For your production server, you might have the following config:

# .env
APP_ENV=production
Posted by: Guest on August-19-2020
-1

laravel set env to production

APP_ENV=production
APP_DEBUG=false
Posted by: Guest on October-10-2021

Code answers related to "access env laravel with process.env"

Browse Popular Code Answers by Language