Skip to content

Blog

This page is generated from public package documentation in capell-4/packages and the package manifest checked into the source repository.

FieldValue
Composer packagecapell-app/blog
Package slugblog
Product groupCapell Foundation
Tierfree
Bundlefoundation
Runtime contextsadmin, frontend, console
Capell version^4.0
Source repositorycapell-app/packages
Source pathpackages/blog
Docs sourcepackages/blog/docs
Manifestcapell.json

Blog adds article publishing, archive pages, tag pages, article blocks, Site Discovery sitemap contributions, and frontend Livewire page components to Capell.

  • Package: capell-app/blog
  • Namespace: Capell\Blog\
  • Surfaces: Filament admin, Livewire, console, database
  • Service providers: packages/blog/src/Providers/AdminServiceProvider.php, packages/blog/src/Providers/BlogServiceProvider.php, packages/blog/src/Providers/ConsoleServiceProvider.php, packages/blog/src/Providers/FrontendServiceProvider.php
  • Capell dependencies: capell-app/admin, capell-app/content-sections, capell-app/frontend, capell-app/html-cache, capell-app/insights, capell-app/navigation, capell-app/publishing-studio, capell-app/site-discovery, capell-app/tags
  • Adds the editorial publishing layer most Capell sites need: articles, archives, tag pages, related blocks, and sitemap contributions.
  • Lets editors manage content marketing inside Capell instead of building one-off article page types for every project.
  • Gives developers package-owned loaders, Actions, Livewire pages, and tests for article ordering, tags, media, and public rendering.

Blog adds article publishing, archive pages, tag pages, article blocks, Site Discovery sitemap contributions, and frontend Livewire page components to Capell.

  • Article Filament resource.
  • Blog, archive, and tag frontend Livewire components.
  • Article blocks and configurators for layout builder.
  • Site Discovery sitemap contributions for articles, archives, and tags.
  • Commands to install and create blog pages.

For developers: Builds on core pages, layouts, translations, page URLs, core layout builder blocks, and tags while keeping article-specific logic in actions and loaders.

For teams: Gives editors a dedicated article workflow that still fits the same structured publishing foundation as pages.

This package makes its Composer dependencies visible because they are part of the value proposition, not just plumbing. When an upstream package has a public repository, its linked preview card points readers back to the maintainers so their work gets proper credit.

Capell packages used here

Open-source packages used here

  • No extra third-party Composer package beyond the Capell package stack is required here.

Screenshots are generated from docs/screenshots.json during package deployment.

  • Articles admin index.
  • Create/edit article form.
  • Blog page frontend output.
  • Archive page frontend output.
  • Tag page frontend output.
  • BlogServiceProvider, AdminServiceProvider, ConsoleServiceProvider, and FrontendServiceProvider register package surfaces.
  • Migration creates articles.
  • Model: Article.
  • Filament resource: ArticleResource.
  • Livewire pages: Blog, Archive, Tag.
  • Listeners sync navigation and translation changes.
AreaPathPurpose
Actionspackages/blog/src/ActionsDomain operations. Test these directly where possible.
Datapackages/blog/src/DataStructured payloads, form state, view models, and integration data.
Enumspackages/blog/src/EnumsPersisted states and Filament option values.
Modelspackages/blog/src/ModelsEloquent records owned by the package.
Filamentpackages/blog/src/FilamentAdmin resources, pages, blocks, and settings UI.
Livewirepackages/blog/src/LivewireInteractive frontend or admin components.
Providerspackages/blog/src/ProvidersRegistration, extension hooks, routes, migrations, and resources.
Resourcespackages/blog/resourcesViews, translations, assets, and package resources.
Databasepackages/blog/databaseMigrations, seeders, and settings migrations.
Testspackages/blog/testsPackage-level Pest coverage.
  • Resources: ArticleResource.
  • Pages: CreateArticle, EditArticle, ListArticles.
  • Blocks: ArticleHealthBlockAbstract, ArticleBlockConfigurator, ListArticlesBlock, RelatedBlockConfigurator, TopPagesBlockAbstract, TrafficChartBlockAbstract.
  • Livewire: Archive, Blog, Tag.
  • capell:blog-create-pages {site : The ID of the site to create blog pages for} (packages/blog/src/Console/Commands/CreateBlogPagesCommand.php)
  • capell:blog-faker {--count=25} {--sites=} {--languages=} {--force} (packages/blog/src/Console/Commands/FakerCommand.php)
  • capell:blog-install (packages/blog/src/Console/Commands/InstallCommand.php)
  • capell:blog-setup {--user= : Ignored - accepted for compatibility with capell:install} {--sites= : Ignored - accepted for compatibility with capell:install} {--languages= : Ignored - accepted for compatibility with capell:install} {--url= : Ignored - accepted for compatibility with capell:install} (packages/blog/src/Console/Commands/SetupCommand.php)
  • capell:hero-demo {--sites=} (packages/blog/src/Console/Commands/HeroDemoCommand.php)
  • articles stores uuid, workspace, type, layout, site, meta, visible_from, and visible_until.

  • Articles connect to sites, types, layouts, page URLs, translations, core layout builder block assets, and tags.

  • Blog uses the layout builder APIs provided by the admin/frontend core packages.

  • Deletion and retention behaviour should be verified against the host application policy.

  • Models: Article.

  • Migrations: 2026_05_10_190842_01_create_articles_table.php.

  • Data objects live in src/Data/; use them for payloads, form state, and view models.

  • Listeners: AddBlogPagesToNavigation, ArticleTranslationSavedListener.
  • Register Capell extension points, routes, migrations, settings, render hooks, and resources from service providers.
  • Adds articles table and article admin resource.
  • Adds blog frontend components and Site Discovery sitemap contributions.
  • Adds console commands for setup, install, demo, faker, and page creation.
  • May add blog pages to navigation through listener behaviour.
  • Install with composer require capell-app/blog in the host Capell application.
  • Run the package install command above when the package needs migrations, settings, generated pages, or seed data.
  • In this repository, verify package changes with vendor/bin/pest; do not use php artisan.
  • ArticleResource (packages/blog/src/Filament/Resources/Articles/ArticleResource.php, slug article)

  • CreateArticle (packages/blog/src/Filament/Resources/Articles/Pages/CreateArticle.php)

  • EditArticle (packages/blog/src/Filament/Resources/Articles/Pages/EditArticle.php)

  • ListArticles (packages/blog/src/Filament/Resources/Articles/Pages/ListArticles.php)

  • Gate: ArticleHealthBlockAbstract: developer, admin, super_admin

  • Gate: TopPagesBlockAbstract: admin, super_admin

  • Gate: TrafficChartBlockAbstract: admin, super_admin

  • Run the package setup before expecting archive/tag pages.
  • Check layouts before creating article records.
  • Cache and Site Discovery sitemap output may need regeneration after setup.

Run package tests from the repository root:

Terminal window
vendor/bin/pest packages/blog/tests --configuration=phpunit.xml
  • Keep Blog block setup aligned with the layout builder APIs provided by admin/frontend core packages.
  • Put behaviour changes in src/Actions/; UI classes, commands, and controllers should call actions instead of owning domain logic.
  • Use package Data classes at boundaries instead of passing anonymous arrays between layers.
  • Use backed enums for persisted values and enum labels for Filament options.