From 539544e9db70f8bfce76d2afcdfa7822125ccc5b Mon Sep 17 00:00:00 2001 From: Dan Harrin Date: Tue, 16 Sep 2025 11:48:23 +0100 Subject: [PATCH] Update HasFileAttachments.php --- packages/forms/src/Components/Concerns/HasFileAttachments.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/forms/src/Components/Concerns/HasFileAttachments.php b/packages/forms/src/Components/Concerns/HasFileAttachments.php index 04c299a7ae..a881b7b712 100644 --- a/packages/forms/src/Components/Concerns/HasFileAttachments.php +++ b/packages/forms/src/Components/Concerns/HasFileAttachments.php @@ -8,6 +8,7 @@ use Illuminate\Contracts\Filesystem\Filesystem; use Illuminate\Filesystem\FilesystemAdapter; use Illuminate\Support\Facades\Storage; use League\Flysystem\UnableToCheckFileExistence; +use Livewire\Attributes\Renderless; use Livewire\Features\SupportFileUploads\TemporaryUploadedFile; use Throwable; @@ -38,6 +39,7 @@ trait HasFileAttachments } #[ExposedLivewireMethod] + #[Renderless] public function getUploadedFileAttachmentTemporaryUrl(TemporaryUploadedFile | string | null $attachment = null): ?string { return $this->getUploadedFileAttachment($attachment)?->temporaryUrl(); @@ -77,6 +79,7 @@ trait HasFileAttachments } #[ExposedLivewireMethod] + #[Renderless] public function saveUploadedFileAttachmentAndGetUrl(): ?string { $attachment = $this->getUploadedFileAttachment();