Tente pegar o Laravel
try {
$this->buildXMLHeader();
} catch (\Exception $e) {
return $e->getMessage();
}
Sergiu The Man
try {
$this->buildXMLHeader();
} catch (\Exception $e) {
return $e->getMessage();
}
public function isValid($value)
{
try {
// Validate the value...
} catch (Throwable $e) {
report($e);
return false;
}
}