documents

This commit is contained in:
Simon Pocrnjič
2025-10-12 12:24:17 +02:00
parent 3ab1c05fcc
commit e0303ece74
22 changed files with 898 additions and 88 deletions
+3
View File
@@ -13,12 +13,14 @@ class DocumentSetting extends Model
'preview_enabled',
'whitelist',
'date_formats',
'custom_defaults',
];
protected $casts = [
'preview_enabled' => 'boolean',
'whitelist' => 'array',
'date_formats' => 'array',
'custom_defaults' => 'array',
];
public static function instance(): self
@@ -30,6 +32,7 @@ public static function instance(): self
'preview_enabled' => config('documents.preview.enabled', true),
'whitelist' => config('documents.whitelist'),
'date_formats' => [],
'custom_defaults' => [],
]);
}
}