add_vk_module

This commit is contained in:
Fasutoa
2025-06-18 20:30:41 +05:00
parent b030000238
commit 0b60c4b908
18 changed files with 1432 additions and 62 deletions
+2
View File
@@ -3,6 +3,7 @@
namespace App\Observers;
use App\Containers\Article\Models\Post;
use App\Services\VK\VkService;
use App\Services\App\Cache\PostCacheService;
class PostObserver
@@ -36,6 +37,7 @@ class PostObserver
public function deleted(Post $post)
{
$this->postCacheService->clearAllCacheByModel();
app(VkService::class)->deletePost($post->id);
}
/**