6ber6ou's avatar

Laravel 5 and Test Envornment

Hi all.

I don't understand very much how I can configure 3 different environment (local, test, and production). I just saw this tuto : https://laracasts.com/series/laravel-5-fundamentals/episodes/6 Here's what I understood : - The default .env file is set for my local environment. - To setup production variables I create a .env file on my production server with inside : APP_ENV=production and all the variables how changes

But how can I setup a test environment ? I can only create one .env file. I have to create differents directories (one per environment) like in L4 ?

Please help me to understand...

0 likes
2 replies
bestmomo's avatar

Hi,

For tests you can set environment variables in phpunit.xml

6ber6ou's avatar

Ok so with L5, in the .env file, we can only have a local, and a production environment ?

Please or to participate in this conversation.