Closed ultrasamad closed 5 years ago
I have this validation rule in my form request for model update
[ ... 'student_id' => [ 'filled', 'exists:students,id', "unique_with:results, subject_id, period_id,$this->id" ], ... ];
but then the validation keeps failing when updating a record.
Sorry, I realized I wasn't fetching the id the proper way. Should be $this->result->id
id
$this->result->id
I have this validation rule in my form request for model update
but then the validation keeps failing when updating a record.