Using Laravel validation outside of Controllers & Requests
When you look at the Validator source code in Laravel, you see that it either throws a ValidationException or returns an array of validated attributes:
public function validate()
{
throw_if($this->fails(), $this->exception, $this);
return $t...
annissimo.com7 min read