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();
}
use Exception;
use Illuminate\Database\QueryException;
try {
} catch (Exception $e) {
return $e->getMessage();
} catch (QueryException $e) {
return $e->getMessage();
}
public function isValid($value)
{
try {
// Validate the value...
} catch (Throwable $e) {
report($e);
return false;
}
}
use Throwable;
public function report(Throwable $exception);
public function render($request, Throwable $exception);