in short:
in Controller:
$errors = $this->userValidation->errors()
in UserValidation:
if$validatior->fails) $this->errors = $val->errors
function errors() { return $this->errors; }
Throw an exception and catch it in the controller?
Not sure how to do that. I also need to refill the form and show the error messages. Can you show me some code?
Thanks
behnampmdg3 said:
Didn't work. Also many syntax errors.
OMG. This is not copy & paste code ;) It's solution HOW to do this.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community