> */ public function rules(): array { return [ 'entryId' => [ Str::of('prohibits:')->append('playlistId')->__toString(), 'required_without_all:'.implode(',', [ 'playlistId', ]), Rule::exists(AnimeThemeEntry::TABLE, AnimeThemeEntry::ATTRIBUTE_ID), ], 'playlistId' => [ Str::of('prohibits:')->append('entryId')->__toString(), 'required_without_all:'.implode(',', [ 'entryId', ]), ], ]; } }