- What does the laravel-filament-flexible-content-blocks package do?
- It is a Laravel package for Filament that lets you build flexible, reusable content blocks for any model. You define block types, manage page sections with a visual editor, and render each block through an extendable Blade view component. It is aimed at CMS-style pages and maintainable dynamic layouts without hardcoded templates.
- How do I install statikbe/laravel-filament-flexible-content-blocks in Laravel?
- Install it with Composer, then register the package service provider and Filament plugin as described in the documentation. For the v4.2 Filament theme, you may also need to publish or register theme assets and views and rebuild frontend assets. Confirm the package version constraints before installing in an existing Filament panel.
- Which Laravel and Filament versions does this package support?
- The package targets Laravel applications that use Filament, and the exact version constraints are defined in its composer.json. The v4.2 release adds a Filament theme, so you should verify compatibility with your Filament major version before upgrading. Test in staging with the same Filament version as production.
- Can I use flexible content blocks with any Eloquent model?
- Yes, the package is designed to create content blocks for any model. You attach block content to your model and render each block through its Blade view component. Check the documentation for the required model setup and any migrations.
- How do I create custom content blocks and Blade views?
- You can define predefined or custom block types, and each block has an extendable Blade view component. The Filament editor manages page sections visually, while rendering uses the Blade component for each block. This keeps layouts maintainable and avoids hardcoding templates.
- What is new in v4.2 of the package?
- v4.2 adds a Filament theme for rendering content blocks inside the Filament admin UI, bringing block preview and rendering into the admin experience. This is an additive feature that improves editor context and reduces switching between admin and frontend. It may add publishable assets or views and require theme registration or build steps.
- Does the Filament admin preview match the frontend block rendering?
- The v4.2 theme renders blocks within Filament, but you should verify rendering fidelity against your production frontend for representative block types. Treat the admin rendering as a preview and document any differences for editors. Compare output in staging before rolling out to production.
- How do I upgrade from v4.1.8 to v4.2?
- Update the Composer constraint to v4.2, run any new migrations if introduced, republish theme assets or views if the package instructs it, and rebuild frontend assets. Because this is a minor version with an additive feature, treat it as an opt-in enhancement rather than a forced migration. Test in staging with the same Filament version as production and smoke-test editor workflows.
- Will the new Filament theme conflict with my existing panel theme?
- The new theme may publish assets or views that could conflict with an existing Filament panel theme. Publish and register it in staging first, then verify there are no asset or theme regressions. Each Filament major upgrade may also require theme validation.
- Do the Vite dependency bumps affect production assets?
- The Vite bumps are development and build-tooling updates and do not change the runtime architecture. They can affect asset compilation if your project pins Vite versions or shares build pipelines. Align your build tooling if you publish the new theme assets.