Skip to content
Available for new work
Pages in Blog

ReferencePremium

CoullWorks Blog for Laravel front ends reference

The front-end modes, Blade components, overridable views and Inertia stub files.

Updated 16 November 2026Back to the package pageBuy

Choosing a front end#

  • coullworks-blog.frontend: blade / livewire / inertia / none (headless). Invalid value throws InvalidArgumentException.
  • Front end: none: Headless: only the JSON:API (api.enabled) and sitemap/feeds; admin toolkit still installed.
  • Nine workbench profiles: Eight profiles draw HTML; headless checks JSON only.
  • *Design tokens (--cw- in tokens.css)**: Colour, type scale, spacing tokens; change a token and every page follows.
  • Language strings: 69 UI strings (ui.php) and 7 Livewire strings (livewire.php), namespace coullworks-blog::ui. Only an English file ships: other languages are host-provided.
  • Inertia page props: IndexProps, ListingProps, PostProps (template, rail, related), SearchProps (snippet), AuthorProps, SidebarProps (widgets), Cards; TypeScript from blog:inertia:types.
  • Host files: stubs/inertia/host/controller.stub and routes.stub; --domain for per-domain prefixes.
  • Headless reading: frontend=none; same JSON:API; sitemap and feeds still served; no Blade/Livewire routes.

Blade components#

Applies to every row below: Present in both view sets with the same element tree.

ComponentProps and use
<x-cw::author-box>Author box under/beside the post. Props: authors, locale.
<x-cw::banner>Banner markup used by the three banner blocks. Props: d, cwKind.
<x-cw::card>Post card; stacks cw-card-meta. Props: post, level=2, position=9, row=false, term.
<x-cw::cards>Grid/list of cards. Props: posts, mode=grid, term.
<x-cw::category-nav>Category filter nav (listing.category_nav). Props: items, locale, currentId, allCurrent.
<x-cw::consent-placeholder>Consent placeholder for embed/video. Props: info, aspect=16:9, poster.
<x-cw::crumbs>Breadcrumbs. Props: items.
<x-cw::language-switcher>Language switcher nav (coullworks-blog.language_switcher). Props: links (locale, label, url, current). See Language switcher.
<x-cw::head>Head tags (SEO output, JSON-LD); pushes to cw-head. Props: seo, blog, locale.
<x-cw::list>Listing wrapper (replaceable via blade.components.list). Props: posts, pager, more, mode, term.
<x-cw::load-more>Load-more link (blade.load_more). Props: pager.
<x-cw::marked>Search snippet with <mark> highlights. Props: segments.
<x-cw::pagination>Numbered pagination. Props: pager.
<x-cw::search-form>Search box. Props: action, term.
<x-cw::share>Share links (blade.share). Props: url, title.
<x-cw::sidebar>Sidebar of widgets (widgets.sidebar). Props: blog, locale, widgets.
<x-cw::state.empty>Empty state. Props: blog, locale, message.
<x-cw::state.error>Error state. Props: message.
<x-cw::state.loading>Loading state.
<x-cw::takeaways-body>Takeaways list used by rail and block.
<x-cw::widget.archive>Archive widget. Props: blog, locale.
<x-cw::widget.categories>Categories widget (uses widget/category-node). Props: blog, locale.
<x-cw::widget.category-node>Recursive category node.
<x-cw::widget.recent-posts>Recent posts widget (blade.recent). Props: blog, locale, limit.
<x-cw::widget.search>Search widget. Props: blog, locale.
<x-cw::widget.tags>Tags widget. Props: blog, locale.

Views you can override#

ViewWhat it is
layouts/defaultDefault layout. Overridable: a copy in resources/views/vendor/coullworks-blog wins.
components/language-switcherThe language switcher view. Overridable: a copy in resources/views/vendor/coullworks-blog/components wins. The default layout draws it in the header.
partials/commentComment partial (namespace coullworks-comments).
partials/commentsComments partial (namespace coullworks-comments).
partials/standalone-headStandalone head (namespace coullworks-comments).
partials/unsubscribeUnsubscribe partial (namespace coullworks-comments).
partials/unsubscribedUnsubscribed partial (namespace coullworks-comments).
livewire/{tailwind,bootstrap}/postsThe posts component view (listing with load more or pagination). Publish with the tags cwb-livewire-views-tailwind or cwb-livewire-views-bootstrap.
livewire/{tailwind,bootstrap}/search-boxThe search box with suggestions. Publish with the tags cwb-livewire-views-tailwind or cwb-livewire-views-bootstrap.
livewire/shared/components/list/load-more/pagination/searchThe Livewire replacements for the blade.components entries (list, load more, pagination, search). Publish with the tags cwb-livewire-views-tailwind or cwb-livewire-views-bootstrap.
analytics/views/{tailwind,bootstrap}/analyticsReading time, popular and related lists (publish tag cwb-analytics-views).
ai/views/{tailwind,bootstrap}/disclosureAI disclosure line (publish tag cwb-ai-views).

Inertia stub files#

Applies to every row below: Present in React and Vue stubs for both styles

FileWhat it is
page CategoryReact (.tsx) and Vue (.vue) x Tailwind and Bootstrap = 4 stub sets; page prefix inertia.page_prefix "blog/pages/"
page ArchiveReact (.tsx) and Vue (.vue) x Tailwind and Bootstrap = 4 stub sets; page prefix inertia.page_prefix "blog/pages/"
page AuthorReact (.tsx) and Vue (.vue) x Tailwind and Bootstrap = 4 stub sets; page prefix inertia.page_prefix "blog/pages/"
page TagReact (.tsx) and Vue (.vue) x Tailwind and Bootstrap = 4 stub sets; page prefix inertia.page_prefix "blog/pages/"
page SearchReact (.tsx) and Vue (.vue) x Tailwind and Bootstrap = 4 stub sets; page prefix inertia.page_prefix "blog/pages/"
component Sidebar
component StateError
component NotFound
component AuthorBox
component ConsentGate
component StateEmpty
component CategoryNav
component Extras
component Layout
component LanguageSwitcherReads blog.languages; rendered by Layout in the header.
component CopyLink
component ConsentRevoke
component Snippet
component StateLoading
component Card
component ListingView
component Banner
component Share
component SeoHead
component PostView
component Rail
component Pagination
component TocList
component Progress
component Crumbs
component CategoryTree (Vue only)Present in React and Vue stubs for both styles (Vue has CategoryTree, React does not)
support: BlockDispatches by block type
support: registry.tsRegister custom block components
support: builtins.tsThe 23 built-in blocks
support: extras/registry.tsRegister extras renderers (comments, analytics, AI disclosure)
support: lib/* (toc, strings, embed, classes, format, codeHighlight, consent)Helpers
support: types/* (payloads, props, blocks)TypeScript types; regenerate with blog:inertia:types

Available for new work

UK based · PHP · Python · JS · TS. Every first call is free.