Skip to content

Commit b01b4f0

Browse files
committed
Add PreviewFactory import and update configuration overrides to true
1 parent 7cbf760 commit b01b4f0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/InspireCmsServiceProvider.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
use SolutionForest\FilamentFieldGroup\Facades\FilamentFieldGroup;
2222
use SolutionForest\InspireCms\Base as InspireCmsBase;
2323
use SolutionForest\InspireCms\Base\Manifests as BaseManifests;
24+
use SolutionForest\InspireCms\Factories\PreviewFactory;
2425
use SolutionForest\InspireCms\Fields\PropertyValueTransformer;
2526
use SolutionForest\InspireCms\Fields\PropertyValueTransformerInterface;
2627
use SolutionForest\InspireCms\Helpers\AuthHelper;
@@ -294,7 +295,7 @@ protected function registerModels(): void
294295

295296
protected function customPlugins(): void
296297
{
297-
if (InspireCmsConfig::get('system.override_plugins.field_group_models', false)) {
298+
if (InspireCmsConfig::get('system.override_plugins.field_group_models', true)) {
298299

299300
// override field group models
300301
FilamentFieldGroup::setFieldGroupModelClass(
@@ -314,8 +315,8 @@ protected function customPlugins(): void
314315
fn ($field, array $schema) => static::configureFileFieldTypeConfigFormSchema($schema)
315316
);
316317
}
317-
if (InspireCmsConfig::get('system.override_plugins.spatie_permission', false)) {
318318

319+
if (InspireCmsConfig::get('system.override_plugins.spatie_permission', true)) {
319320
config()->set('permission.enable_wildcard_permission', true);
320321
}
321322

0 commit comments

Comments
 (0)