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
@@ -9,6 +9,7 @@ use App\Services\Filament\Domain\Posts\PostDataProcessor;
use App\Services\Filament\Domain\Posts\PostNotificationService;
use App\Services\Filament\Domain\Posts\PostSliderService;
use App\Services\Filament\Domain\Posts\VkPostPublisher;
use App\Services\Filament\Domain\Posts\TgPostPublisher;
use App\Services\Filament\Traits\SeoGenerate;
use Filament\Resources\Pages\CreateRecord;
@@ -48,6 +49,7 @@ class CreatePost extends CreateRecord
$this->createSeo($this->record);
$this->sendNotifications();
$this->publishToVk();
$this->publishToTg();
}
protected function handleSlides(): void
@@ -74,6 +76,11 @@ class CreatePost extends CreateRecord
(new VkPostPublisher())->publish($this->publicationAgreements, $this->record);
}
protected function publishToTg(): void
{
(new TgPostPublisher())->publish($this->publicationAgreements, $this->record);
}