This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

luu.bao.bk.9323524
luu.bao.bk.9323524

Missing "use trait validation in model"

===========================

I have 2 model :

Question and Option

Question has many options (for suggest anwser)

Question Model -> relation : has_many = [ 'option' => 'Option Model' ]

On create and update form, when user add new option for 1 question. I need that option not empty.

Option Model -> rules : ['option_value' => 'required']

However, it's not working. Any ideas about this ?

p/s : field option on form is type partial and i use relation_manager for that field.

Last updated

1-1 of 1

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.