Setting up Laravel environments and using .env files in Laravel
Questions tagged [laravel-environment]
24 questions
0
votes
0 answers
How to point Laravel passport/authentication to a production environment while leveraging local database for typical data
I have built out a production API leveraging Laravel 5x (lets say api.test). I have gotten to the point now where I need to create a sandbox environment for users of the API to test out the API to without muddying up the live data (lets say…

Citti
- 423
- 1
- 6
- 23
0
votes
1 answer
Have Undefined index while run the cron job in Laravel 5.X with Liebig
I have a strange error in my cron job. At the beginning while I am running the cron job its working fine. At that time I am define the variables normally. Like, $ck_host='abc';. But now I change the code and access the same variable from the .env…

Avishake
- 460
- 1
- 6
- 20
0
votes
0 answers
Why I am obtaining this error messages when I run my Laravel project after having retrieve it from GIT? Controllers can't works?
I am pretty new in Laravel and I have the following problem.
I was working on a Laravel 5 application on my old notebook putting my code on my GIT repository. Then I change laptop and I do the checkout of my Laravel 5 project from GIT.
Then I…
user7540582
0
votes
1 answer
Laravel 5 : How to set environment mode
I mm trying to set 3 mode in laravel 5 Example : mode local , staging , production
I am setting environment 3 mode in .env but I try to separate to
.local.env , .staging.env and production.env someone here have any idea to do like this ?
Now…

Kornkrit Leelhaphunt
- 168
- 2
- 15
0
votes
1 answer
Laravel 5 database.php set to sqlite - artisan uses mysql
I seem to be having a problem with artisan reading the default config/database.php file.
When I run for php artisan migrate:status - or any other migration related commands I get
exception 'PDOException' with message 'SQLSTATE[28000] [1045] Access
…

Sebastian Sulinski
- 5,815
- 7
- 39
- 61
0
votes
0 answers
Environment files does not work in Laravel
I created in my root laravel directory, file .env.php. With below content
'localhost',
'DB_NAME'=>'erp',
'DB_USER'=>'root',
'DB_PASS'=>'',
);
Next, in random controller I have…

Thomas Shelby
- 1,340
- 3
- 20
- 39
0
votes
1 answer
Laravel 5 environment detection
I'm trying to get environment detection to work, so that I can use the .env.local.php file and all the other goodies, but somehow I cannot get it to detect the right environment.
I have added bootstrap/environment.php

Tino
- 3,340
- 5
- 44
- 74
0
votes
1 answer
PHP Laravel Server Environment Configuration
I am new with laravel and I am confused on how to setup my server environment configuration. So here is a sample code I've seen in some tutorials, but still I am not satisfied that this would be flexible enough specially when my other co-developers…

Cyril
- 46
- 2
0
votes
1 answer
Laravel 5 doesn't read values from dot ENV files
I don't know if this question is relevant or not. LARAVEL 5 is still in developmental phase. I have pulled LARAVEL 5 after watching one of the Laracast video about new features in LARAVEL 5. I couldn't resist to wait for its formal release.
I named…

Nirmalz Thapaz
- 925
- 4
- 13
- 28