validated(); $logs = $this->service->listLogs( $payload['from'] ?? null, $payload['to'] ?? null, $payload['type'] ?? null ); return response()->json([ 'ok' => true, 'logs' => PaymentNotificationLogResource::collection($logs), ]); } public function send(PaymentNotificationSendRequest $request): JsonResponse { $payload = $request->validated(); $result = $this->service->send($payload); return response()->json(['ok' => true] + $result); } }