mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
Enum values
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user