url = config('fib.checkPaymentStatus.url'); $this->channelName = ''; } /** * @throws Exception */ public function run(): array { try { return $this->sendRequest(); } catch (Exception $e) { Log::channel($this->channelName) ->error(get_class($this), [ 'message' => $e->getMessage(), ] ); throw $e; } } /** * @throws ConnectionException */ public function sendRequest(): array { return Http::throw() ->withoutVerifying() ->post($this->url) ->json(); } }