From 4e0432f3a83d00fbf4bba9f4612b7b35a97afb73 Mon Sep 17 00:00:00 2001 From: HolgerHatGarKeineNode Date: Fri, 17 Mar 2023 12:48:39 +0100 Subject: [PATCH] Enum values --- app/Http/Livewire/Library/Form/LibraryItemForm.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Livewire/Library/Form/LibraryItemForm.php b/app/Http/Livewire/Library/Form/LibraryItemForm.php index bfb3c47d..645419f6 100644 --- a/app/Http/Livewire/Library/Form/LibraryItemForm.php +++ b/app/Http/Livewire/Library/Form/LibraryItemForm.php @@ -53,9 +53,9 @@ class LibraryItemForm extends Component 'libraryItem.value' => [ 'required', Rule::when( - $this->libraryItem->type !== LibraryItemType::MarkdownArticle - && $this->libraryItem->type !== LibraryItemType::MarkdownArticleExtern - && $this->libraryItem->type !== LibraryItemType::DownloadableFile, ['url'] + $this->libraryItem->type !== LibraryItemType::MarkdownArticle() + && $this->libraryItem->type !== LibraryItemType::MarkdownArticleExtern() + && $this->libraryItem->type !== LibraryItemType::DownloadableFile(), ['url'] ), ], 'libraryItem.subtitle' => 'required',