public function ping($hash) { $heartbeat = $this->repository->getByHash($hash); $heartbeat->pinged(); return ['success' => true]; }