> */ public function rules(): array { return [ 'word' => ['prohibited'], 'tag' => ['prohibited'], 'meaning' => ['sometimes', 'string', 'max:1024'], 'other_meaning' => ['sometimes', 'nullable', 'string', 'max:1024'], 'note' => ['sometimes', 'nullable', 'string'], 'summary' => ['sometimes', 'nullable', 'string'], 'quality' => ['sometimes', 'nullable', 'string', Rule::in(DhammaTerm::QUALITIES)], 'content_type' => ['sometimes', 'string', Rule::in(DhammaTerm::CONTENT_TYPES)], 'redirect' => ['sometimes', 'nullable', 'string', 'max:1024'], 'language' => ['sometimes', 'string', 'max:16'], ]; } /** * @return array */ public function messages(): array { return [ 'word.prohibited' => __('messages.term_word_immutable'), 'tag.prohibited' => __('messages.term_word_immutable'), ]; } }