Support the ongoing development of Laravel.io →
Validation Architecture
Last updated 1 year ago.
0

We're going to need a bit more code.

Where do you throw an Exception?

Make sure first param is a string.

Last updated 1 year ago.
0

I believe the Exception is thrown here. in FormValidator.php

if ($this->validation->fails()) { throw new FormValidationException('Validation failed', $this->getValidationErrors()); }

Last updated 1 year ago.
0

Can you post code in FormValidationException.php pls?

Do you namespace your exception class?

Can you var_dump what's in $this->getValidationErrors() ?

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

nacr nacr Joined 22 May 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.