My solution:
if($app->runningInConsole()) {
$app->loadEnvironmentFrom('console.env');
} else {
if(Illuminate\Http\Request::capture()->segment(1) == 'admin_url' ){
$app->loadEnvironmentFrom('web_admin.env');
} else {
$app->loadEnvironmentFrom('web_client.env');
}
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community