statikbe / laravel-filament-flexible-content-blocks

The Laravel Filament Flexible Content Blocks package helps you to easily create content in Filament for any model, with predefined or custom blocks, and foreach block an extendable Blade view component.
MIT License
119 stars 19 forks source link

Fix example code to work properly #25

Closed sjardim closed 10 months ago

sjardim commented 1 year ago

This PR fixes a couple of small issues to make the example code work. BUT there is still an issue when the project has just one locale (no translations) as when trying to save a page, an exception will be thrown due to the lack of the "setTranslation" method on the Page model (not the TranslatedPage).

sten commented 10 months ago

@sjardim Thanks for the help! I went through the example and added your suggestions!