我需要在队列中运行以下行。
if (app()->bound('sentry') && $this->shouldReport($e)) {
app('sentry')->captureException($e);
}
但是当我在作业类中运行 'app('sentry')->captureException($e)' 时,我看到了这个错误
Uncaught Exception: Serialization of 'Closure' is not allowed in /var/www/html/mini-wallet/vendor/illuminate/queue/Queue.php:157
怎么?有什么解决办法?