select()->where('post_id', $this->post_id)->first(); $vkService = new VkService(); $vkService->updatePost($postRelation->vk_post_id, $this->title, $this->text, $this->images, $this->publish_date); } catch (\Exception $e) { Log::error('Ошибка при создании поста: ' . $e->getMessage()); throw $e; // Перебрасываем исключение для повторной попытки } } }