From 4ddc65d0c5c2cbd0015e977ddc02f0a875fddd65 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 26 May 2023 14:11:01 +0200 Subject: [PATCH] remove code --- app/Providers/AppServiceProvider.php | 16 ---------------- bootstrap/helpers/shared.php | 5 ----- .../views/components/layout-simple.blade.php | 6 ------ resources/views/components/layout.blade.php | 7 ------- 4 files changed, 34 deletions(-) diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index fabae393c..ff560e119 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -2,13 +2,7 @@ namespace App\Providers; -use App\Jobs\CoolifyTask; -use App\Models\InstanceSettings; -use Illuminate\Queue\Events\JobProcessed; -use Illuminate\Support\Facades\Queue; -use Illuminate\Support\Facades\URL; use Illuminate\Support\ServiceProvider; -use Illuminate\Support\Str; class AppServiceProvider extends ServiceProvider { @@ -24,15 +18,5 @@ public function register(): void */ public function boot(): void { - // if ($this->app->environment('production')) { - // try { - // $settings = InstanceSettings::first(); - // if (Str::startsWith($settings->fqdn, 'https')) { - // URL::forceScheme('https'); - // } - // } catch (\Exception $e) { - // // do nothing - // } - // } } } diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.php index 6c1e8eddd..57fa14c27 100644 --- a/bootstrap/helpers/shared.php +++ b/bootstrap/helpers/shared.php @@ -1,16 +1,11 @@ fqdn)->startsWith('https'); -} function general_error_handler(\Throwable $e, $that = null, $isJson = false) { try { diff --git a/resources/views/components/layout-simple.blade.php b/resources/views/components/layout-simple.blade.php index 5e9e34405..8c6472474 100644 --- a/resources/views/components/layout-simple.blade.php +++ b/resources/views/components/layout-simple.blade.php @@ -6,12 +6,6 @@ - {{-- {{ dd(request()->host()) }} - @if (str_starts_with(request()->schemeAndHttpHost(), 'https')) - - @else - http - @endif --}} @env('local') Coolify - localhost @endenv diff --git a/resources/views/components/layout.blade.php b/resources/views/components/layout.blade.php index 6d3c3e6d9..94616f77a 100644 --- a/resources/views/components/layout.blade.php +++ b/resources/views/components/layout.blade.php @@ -25,11 +25,6 @@ - {{-- @if (is_https()) - - @else --}} @livewireScripts @auth @@ -65,8 +60,6 @@ class="fixed text-xs cursor-pointer right-2 bottom-1 opacity-60 hover:opacity-10 }) @endauth - {{-- @endif --}} -