This commit is contained in:
Andras Bacsai 2023-12-11 19:16:17 +01:00
parent f0ee26cd86
commit 40716550ec
2 changed files with 4 additions and 5 deletions

View File

@ -31,7 +31,8 @@ public function fqdn(): Attribute
}
);
}
public static function realtimePort() {
public static function realtimePort()
{
$envDefined = env('PUSHER_PORT');
if ($envDefined != '6001') {
return $envDefined;
@ -40,11 +41,8 @@ public static function realtimePort() {
$port = $url->getPort();
if ($port) {
return 6001;
}
if ($url->getScheme() === 'https') {
return 443;
} else {
return 6001;
return null;
}
}
public static function get()

View File

@ -42,6 +42,7 @@
<button>close</button>
</form>
</dialog>
{{$realtimePort}}
<x-toaster-hub />
<x-version class="fixed left-2 bottom-1" />
<script data-navigate-once>