From 19cefd9718c2cda6f2d59f47e4c138c6a8a8251e Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 26 May 2023 11:56:36 +0200 Subject: [PATCH] fix --- bootstrap/helpers/shared.php | 4 ---- resources/views/components/layout.blade.php | 2 ++ 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.php index 30774be23..57fa14c27 100644 --- a/bootstrap/helpers/shared.php +++ b/bootstrap/helpers/shared.php @@ -6,10 +6,6 @@ use Visus\Cuid2\Cuid2; use Illuminate\Support\Str; -function is_https() -{ - return request()->secure(); -} function general_error_handler(\Throwable $e, $that = null, $isJson = false) { try { diff --git a/resources/views/components/layout.blade.php b/resources/views/components/layout.blade.php index 0e3fcb53f..e8af85645 100644 --- a/resources/views/components/layout.blade.php +++ b/resources/views/components/layout.blade.php @@ -8,6 +8,8 @@ @if (request()->secure()) + @else + http {{ request()->secure() }} @endif @env('local') Coolify - localhost