You don't need to validate all values by validator for every fields, however this is a simple but i think you can do that for each variable as you want to validate by this code:
public function updated($field) { try { $this->validateOnly($field); } catch (ValidationException $e) { $validator = $e->validator; } }
this is when property is public yes. however i wrote post incase you want to validate a local variable which does not have existence on component.
oh, i get it now, you are right
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You don't need to validate all values by validator for every fields, however this is a simple but i think you can do that for each variable as you want to validate by this code:
this is when property is public yes. however i wrote post incase you want to validate a local variable which does not have existence on component.
oh, i get it now, you are right