I getting this error but I just install the packege and did not change any code.
Symfony \ Component \ Debug \ Exception \ FatalErrorException Wrong parameters for Exception([string $exception [, long $code [, Exception $previous = NULL]]]) open: /var/www/laravel/vendor/laracasts/validation/src/Laracasts/Validation/FormValidationException.php /** * @param string $message * @param mixed $errors */
function __construct($message, $errors) {
$this->errors = $errors;
parent::__construct($message, $errors);
}
We're going to need a bit more code.
Where do you throw an Exception?
Make sure first param is a string.
I believe the Exception is thrown here. in FormValidator.php
if ($this->validation->fails()) { throw new FormValidationException('Validation failed', $this->getValidationErrors()); }
Can you post code in FormValidationException.php pls?
Do you namespace your exception class?
Can you var_dump what's in $this->getValidationErrors() ?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community