From be55e751097c51435c269736c047188a1776a141 Mon Sep 17 00:00:00 2001 From: hallo123wert <79359578+hallo123wert@users.noreply.github.com> Date: Wed, 17 Dec 2025 10:47:18 +0100 Subject: [PATCH] Fix: egg images are not loading (#2009) --- app/Models/Egg.php | 2 +- app/Models/Server.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/Egg.php b/app/Models/Egg.php index 98f9f165d..adc0c7e30 100644 --- a/app/Models/Egg.php +++ b/app/Models/Egg.php @@ -350,7 +350,7 @@ class Egg extends Model implements Validatable foreach (array_keys(static::IMAGE_FORMATS) as $ext) { $path = static::ICON_STORAGE_PATH . "/$this->uuid.$ext"; if (Storage::disk('public')->exists($path)) { - return url($path); + return Storage::disk('public')->url($path); } } diff --git a/app/Models/Server.php b/app/Models/Server.php index d6b326b55..5934daa26 100644 --- a/app/Models/Server.php +++ b/app/Models/Server.php @@ -538,7 +538,7 @@ class Server extends Model implements HasAvatar, Validatable foreach (array_keys(static::IMAGE_FORMATS) as $ext) { $path = static::ICON_STORAGE_PATH . "/$this->uuid.$ext"; if (Storage::disk('public')->exists($path)) { - return url($path); + return Storage::disk('public')->url($path); } }