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
115 stars 18 forks source link

Fix example code to work properly #25

Closed sjardim closed 9 months ago

sjardim commented 11 months 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 9 months ago

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