You can do the something like this in the
config.php; please note this might have unwanted side-effects.
"url" => "https://" . \Illuminate\Support\Arr::get($_SERVER, 'HTTP_HOST', 'fallback.com')
This will set the URL to the currently requested hostname and use
fallback.com in cli or when none has been identified.