From b289cfd829e4ca9722ca37ad95e827c34c8bbb50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Muhammet=20G=C3=BCler?= Date: Mon, 9 Feb 2026 15:18:59 +0300 Subject: [PATCH] feat: re-enable image editor and aspect ratios for blog and page settings --- app/Filament/Admin/Resources/Blogs/Schemas/BlogForm.php | 6 ++++++ .../Pages/Schemas/Sections/PageSettingsSection.php | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/app/Filament/Admin/Resources/Blogs/Schemas/BlogForm.php b/app/Filament/Admin/Resources/Blogs/Schemas/BlogForm.php index 66c452d..15347c5 100644 --- a/app/Filament/Admin/Resources/Blogs/Schemas/BlogForm.php +++ b/app/Filament/Admin/Resources/Blogs/Schemas/BlogForm.php @@ -71,6 +71,12 @@ class BlogForm ->disk('public') ->directory('blogs/featured') ->visibility('public') + ->imageEditor() + ->imageEditorAspectRatios([ + '16:9', + '4:3', + '1:1', + ]) ->helperText(__('blog.featured_image_helper')) ->columnSpanFull(), diff --git a/app/Filament/Admin/Resources/Pages/Schemas/Sections/PageSettingsSection.php b/app/Filament/Admin/Resources/Pages/Schemas/Sections/PageSettingsSection.php index de1ba11..a54e347 100644 --- a/app/Filament/Admin/Resources/Pages/Schemas/Sections/PageSettingsSection.php +++ b/app/Filament/Admin/Resources/Pages/Schemas/Sections/PageSettingsSection.php @@ -21,6 +21,12 @@ class PageSettingsSection ->disk('public') ->directory('pages/featured') ->visibility('public') + ->imageEditor() + ->imageEditorAspectRatios([ + '16:9', + '4:3', + '1:1', + ]) ->helperText(__('pages.featured_image_helper_text')) ->columnSpanFull(),