We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
afterResponse
1 parent 5918195 commit 09c12fdCopy full SHA for 09c12fd
src/Notifier.php
@@ -104,13 +104,14 @@ public function report(Throwable $exception)
104
return;
105
}
106
107
- dispatch(new SendExceptionNotification(
+ $dispatch = dispatch(new SendExceptionNotification(
108
// tap($this->client)->setMessage($this->createMessageByException($exception))
109
tap($this->client, function (Client $client) use ($exception) {
110
$client->setMessage($this->createMessageByException($exception));
111
})
112
- ))
113
- ->afterResponse();
+ ));
+
114
+ method_exists($dispatch, 'afterResponse') && $dispatch->afterResponse();
115
} catch (Throwable $e) {
116
Log::error($e->getMessage());
117
0 commit comments