diff --git a/src/SendJob.php b/src/SendJob.php index f7578d8..e2f63be 100644 --- a/src/SendJob.php +++ b/src/SendJob.php @@ -56,7 +56,7 @@ public function handle(): void $httpClient = new Client($httpClientOption); try { - $response = $httpClient->post($this->url, $requestOptions); + $httpClient->post($this->url, $requestOptions); } catch (\Throwable $exception) { $this->fail($exception); } diff --git a/src/TopicDetector.php b/src/TopicDetector.php index 66340ac..9cfc946 100644 --- a/src/TopicDetector.php +++ b/src/TopicDetector.php @@ -221,8 +221,7 @@ protected function getMainLivewireClass(): array $method = null; try { - $request = request(); - $payload = $request->all(); + $payload = request()->all(); if (isset($payload['components'][0])) { $componentData = $payload['components'][0];