From 97bda3d353a8a2ef2a99819bad9268cb86144e3f Mon Sep 17 00:00:00 2001 From: F4ilji Date: Wed, 18 Jun 2025 23:33:41 +0500 Subject: [PATCH] small fix --- app/Filament/Components/Forms/PostForm.php | 2 +- app/Filament/Resources/PostResource/Pages/CreatePost.php | 2 +- app/Ship/Middleware/TrustProxies.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Filament/Components/Forms/PostForm.php b/app/Filament/Components/Forms/PostForm.php index 96c1a89..4d7125a 100644 --- a/app/Filament/Components/Forms/PostForm.php +++ b/app/Filament/Components/Forms/PostForm.php @@ -166,7 +166,7 @@ class PostForm ->reorderable() ->panelLayout('grid') ->helperText('Загрузите дополнительные изображения для галереи') - ->maxFiles(10) + ->maxFiles(200) ->maxSize(20480) ->acceptedFileTypes(['image/jpeg', 'image/png']) ->imagePreviewHeight('150'), diff --git a/app/Filament/Resources/PostResource/Pages/CreatePost.php b/app/Filament/Resources/PostResource/Pages/CreatePost.php index d7ebb37..01b8b71 100644 --- a/app/Filament/Resources/PostResource/Pages/CreatePost.php +++ b/app/Filament/Resources/PostResource/Pages/CreatePost.php @@ -49,7 +49,7 @@ class CreatePost extends CreateRecord $this->createSeo($this->record); $this->sendNotifications(); $this->publishToVk(); - $this->publishToTg(); +// $this->publishToTg(); } protected function handleSlides(): void diff --git a/app/Ship/Middleware/TrustProxies.php b/app/Ship/Middleware/TrustProxies.php index 4b6f680..a218e23 100644 --- a/app/Ship/Middleware/TrustProxies.php +++ b/app/Ship/Middleware/TrustProxies.php @@ -12,7 +12,7 @@ class TrustProxies extends AbstractMiddleware * * @var array|string|null */ - protected $proxies; + protected $proxies = '*'; /** * The headers that should be used to detect proxies.