Replies: 3 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
0 replies
-
I've worked out you can add blocks to any Model. public static function form(Form $form): Form
{
return $form
->schema([
TextInput:make('title'),
Group::make()
->schema([
PageBuilder::make('blocks')
->label(__('filament-fabricator::page-resource.labels.blocks'))
->blocks(FilamentFabricator::getPageBlocks()),
])->columnSpan(2),
]);
} And add a json field called `blocks to your table. $table->json('blocks')->nullable(); Seems to work fine, so..? 🤷♂️ |
Beta Was this translation helpful? Give feedback.
1 reply
-
Awesome, that works for you! I originally had a different idea than this. Thanks for sharing your idea |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Sorry Discussions are disabled so asking this question here instead.
I can't figure out how to add fabricator to my other models - is it fixed to only the provided Pages model?
I really want to use it on a number of different models - is this possible?
Beta Was this translation helpful? Give feedback.
All reactions