Welcome Guest, Not a member yet? Register   Sign In
Multiple App with .env
#2

Define your own Environment Variables, and set the value to corresponding app's config.

E.g.,
In .env file:
Code:
BASE_URL1=https://app1.example.com/


In Config\App's constructor:
PHP Code:
$this->baseURL env('BASE_URL1'); 
Reply


Messages In This Thread
Multiple App with .env - by piieerre - 04-29-2024, 07:36 AM
RE: Multiple App with .env - by kenjis - 04-29-2024, 05:49 PM
RE: Multiple App with .env - by piieerre - 04-29-2024, 10:47 PM
RE: Multiple App with .env - by kenjis - 04-29-2024, 11:56 PM
RE: Multiple App with .env - by piieerre - 04-30-2024, 12:50 AM
RE: Multiple App with .env - by kenjis - 04-30-2024, 01:33 AM
RE: Multiple App with .env - by piieerre - 04-30-2024, 02:35 AM
RE: Multiple App with .env - by kenjis - 04-30-2024, 06:53 PM



Theme © iAndrew 2016 - Forum software by © MyBB