add_vk_module
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user