I tried to get the environment variable from the .env in my root with
Route::get('/test', function () {
return "value is". getenv('APP_ENV');
});
and
Route::get('/test', function () {
return "it is". env('APP_ENV');
});
It is in .env
APP_NAME=Laravel
APP_ENV=local
How can I get access to it?
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2Px9hyw
via IFTTT
Aucun commentaire:
Enregistrer un commentaire