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