From 2c9dcac76ce046cdc00b0bd18ecf86cbbaf715c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=9Cmit=20Tun=C3=A7?= Date: Wed, 31 Dec 2025 00:01:39 +0300 Subject: [PATCH] Refactor SettingForm Schema: Removed the image validation from the file input field in the SettingForm schema, ensuring that only specified file types are accepted for upload. This change enhances the flexibility of file handling in the settings management. --- app/Filament/Admin/Resources/Settings/Schemas/SettingForm.php | 1 - app/Providers/AppServiceProvider.php | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Filament/Admin/Resources/Settings/Schemas/SettingForm.php b/app/Filament/Admin/Resources/Settings/Schemas/SettingForm.php index 0ce297b..ec811b9 100644 --- a/app/Filament/Admin/Resources/Settings/Schemas/SettingForm.php +++ b/app/Filament/Admin/Resources/Settings/Schemas/SettingForm.php @@ -130,7 +130,6 @@ class SettingForm ->helperText(__('settings.value_helper')) ->required() ->visible(fn (Get $get) => $get('type') === 'file') - ->image() ->disk('public') ->directory('settings') ->acceptedFileTypes(['image/*', 'application/pdf', 'text/*']) diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index ec8ef22..5a1ea4d 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -21,6 +21,8 @@ class AppServiceProvider extends ServiceProvider */ public function boot(): void { + setlocale(LC_ALL, 'tr_TR.UTF-8', 'tr_TR', 'turkish'); + // Page model için observer kaydet Page::observe(PageObserver::class); }