statikbe/laravel-filament-flexible-content-block-pages/setup-flexible-pages
Claude Code and agent skill by statikbe/laravel-filament-flexible-content-block-pages
- community
Checking that the SKILL.md file is still in the repository.
Install and set up the statikbe/laravel-filament-flexible-content-block-pages CMS in a Laravel project - publishing config and migrations, registering the Filament panel and the frontend routes, Tailwind sources, localisation, tags, redirects and seeding the first pages.
Install
npx vskill@latest install statikbe/laravel-filament-flexible-content-block-pages/setup-flexible-pagesSKILL.md
Setting up the Flexible Content Block Pages CMS
When to use this skill
Use this skill when the package is being installed in a project for the first time, when the CMS panel or the frontend page routes do not work yet, or when the user asks to "set up the CMS", "install the pages package" or "add the CMS to this project".
For a project where the CMS already runs, use the task specific skills instead (adding a setting, a page template, a linkable model, or filament-flexible-content-blocks-custom-block for a new block type).
Before you start
Check what is already done instead of redoing it. Look for:
config/filament-flexible-content-block-pages.php(config published),- a migration matching
*_create_*pages_table.phpindatabase/migrations, FlexibleContentBlockPagesPanel::classinbootstrap/providers.php,FilamentFlexibleContentBlockPages::routes();inroutes/web.php.
Ask the user whether the site is multilingual before configuring locales and the route helper. It decides the route helper and the whole URL structure, and changing it later changes every URL.
Steps
1. Install and publish
If the project wants different table names, change them in the config before migrating.
2. Register the Filament panel
The package ships a pre-configured panel. Add it to bootstrap/providers.php:
Only build a custom panel from the individual resources when the project explicitly asks for it.
3. Register the frontend routes
In routes/web.php, at the bottom of the file, because the page routes catch many URLs:
This line must stay outside any mcamara/laravel-localization middleware group: the localisation middleware is already included in routes(). Any more specific route of the project must be registered before this line.
4. Localisation
For a multilingual site:
- configure
supported_localesin thefilament-flexible-content-blocksconfig (or a service
provider);
- set
route_helperinconfig/filament-flexible-content-block-pages.phpto
LocalisedPageRouteHelper (localised URLs, the default) or PageRouteHelper (single language);
- follow the
mcamara/laravel-localizationinstallation and register its middleware.
Publish the package translations only when the labels must be changed:
5. Tags
spatie/laravel-tags must point at the package tag model, otherwise tagging breaks:
6. Tailwind sources
The frontend CSS needs the package blade files as Tailwind sources:
And the Filament theme (usually resources/css/filament/admin/theme.css), note the deeper path and the extra filament-tree source:
Forgetting these gives an unstyled CMS frontend or admin, which is easy to misdiagnose as a broken install.
7. Seed the first content
This creates the home page and the settings record, only when they do not exist yet.
8. Redirects and schedule
Add the redirect middleware (see the redirect configuration in the package README), and add the media library maintenance tasks to routes/console.php:
9. Customising the frontend
Publish the views only when they will actually be customised:
Published views are no longer updated with the package, so do not publish them "just in case".
Verify
php artisan route:listshows the page routes at the bottom, and the CMS panel path.- The panel loads and shows Pages, Menus, Settings, Tags and Redirects.
- The home page renders on
/. - Tell the user which steps were already done and which you added.
Gotchas
- Registering
FilamentFlexibleContentBlockPages::routes()too early inweb.phpmakes the CMS
swallow other routes.
- Wrapping
routes()in the localisation middleware group applies that middleware twice. - Changing table names after migrating requires new migrations, not a config change.
- The package extends
statikbe/laravel-filament-flexible-content-blocks: its config
(filament-flexible-content-blocks.php) usually needs publishing and tweaking too, for the content blocks, locales and image conversions. Use the filament-flexible-content-blocks-setup skill of that package to put content blocks on the project's own models, and filament-flexible-content-blocks-custom-block to add a block type that neither package ships.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingresources/boost/skills/setup-flexible-pages/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/statikbe/laravel-filament-flexible-content-block-pages/setup-flexible-pages)