Laravel de ThrowException
throw new \ErrorException('Error found');
prem@web_dev
throw new \ErrorException('Error found');
public function isValid($value)
{
try {
// Validate the value...
} catch (Throwable $e) {
report($e);
return false;
}
}