diff --git a/src/FilamentPageBuilderServiceProvider.php b/src/FilamentPageBuilderServiceProvider.php index 472ccb7..0b8d38e 100644 --- a/src/FilamentPageBuilderServiceProvider.php +++ b/src/FilamentPageBuilderServiceProvider.php @@ -33,10 +33,9 @@ public function packageBooted(): void // support 'empty' form blocks Block::creating(function (Block $model) { - if ($model->content == null) { - $model->content = []; + if(!array_key_exists('content', $model->getAttributes()) || $model->getAttributes()['content'] == null) { + $model->setAttribute('content', []); } - return $model; }); }