Changeset View
Changeset View
Standalone View
Standalone View
src/app/Utils.php
Show First 20 Lines • Show All 360 Lines • ▼ Show 20 Lines | class Utils | ||||
public static function uiEnv(): array | public static function uiEnv(): array | ||||
{ | { | ||||
$countries = include resource_path('countries.php'); | $countries = include resource_path('countries.php'); | ||||
$req_domain = preg_replace('/:[0-9]+$/', '', request()->getHttpHost()); | $req_domain = preg_replace('/:[0-9]+$/', '', request()->getHttpHost()); | ||||
$sys_domain = \config('app.domain'); | $sys_domain = \config('app.domain'); | ||||
$path = request()->path(); | $path = request()->path(); | ||||
$opts = [ | $opts = [ | ||||
'app.name', | 'app.name', | ||||
'app.company.name', | |||||
'app.url', | 'app.url', | ||||
'app.domain', | 'app.domain', | ||||
'app.theme', | 'app.theme', | ||||
'app.webmail_url', | 'app.webmail_url', | ||||
'app.support_email', | 'app.support_email', | ||||
'mail.from.address' | 'mail.from.address' | ||||
]; | ]; | ||||
Show All 31 Lines |