Skip to content
Available for new work
Pages in Blog

ConfigurePremium

Configure CoullWorks Blog for Laravel

The configuration file, the settings stored per blog, and the keys most installs change first.

Updated 16 November 2026Back to the package pageBuy

There are two places to configure the package, and they do different jobs.

  • config/coullworks-blog.php holds what belongs to the application: the front end, table names, URL patterns, image storage, limits and the licence settings. Publish it with php artisan vendor:publish --tag=cwb-config.
  • Blog settings are stored per blog and edited on the Settings screen of the admin (ability blog.settings.manage). Each has a type, a default and a validation rule. A refused value shows on its field and nothing is saved. Saving a setting clears the blog's cached pages, the sitemap and the feeds, so the change shows at once.

A blog that changes nothing behaves as it did before: every setting's default is the value the configuration file already had.

The Settings screen is documented tab by tab, with every field, its allowed values, default and key: Settings, SEO, Listing and feeds and AI keys and AI. The tables below are a summary for quick lookup.

Keys most installs touch#

KeyDefaultWhat it does
coullworks-blog.frontendbladeblade, livewire, inertia or none (headless)
coullworks-blog.blade.frameworktailwindThe Blade view set: tailwind or bootstrap
coullworks-blog.blade.compiled_csstruetrue links the stylesheet the package ships. false links only the token file and blog.css, for a host that builds its own Tailwind classes
coullworks-blog.blade.layoutnullYour own Blade layout, which must yield content and stack cw-head
coullworks-blog.tables.prefixcwb_Prefix of the package's tables
coullworks-blog.images.disknullFilesystem disk for uploaded images
coullworks-blog.images.widths480, 768, 1200Widths of the generated image variants
coullworks-blog.listing.per_page12Posts per listing page
coullworks-blog.feeds.items20Items in a feed
coullworks-blog.licence.local_hostsemptyExtra hosts treated as local. Honoured only outside production
coullworks-blog.api.enabledtrueThe JSON:API reads
coullworks-blog.api.write.enabledfalseThe write routes. See API

The complete list is the generated configuration reference in the package, which names every key with its default and allowed values.

Settings per blog#

SEO output#

KeyDefaultWhat it does
seo.output.canonical, .hreflang, .open_graph, .twitter, .prev_nextonPrints that tag group
seo.output.jsonld.blogposting, .breadcrumb, .collection, .person, .faq, .videoonPrints that structured data
seo.robots_defaultindex,followThe robots value of a page that sets none
seo.tag_noindex_threshold2A tag page with fewer posts than this is noindex,follow
seo.publisher.nameemptyThe publisher in article data. Empty uses the blog name

Listing and appearance#

KeyDefaultRule
listing.per_page121 to 100. A category's own page size overrides it
listing.featured_count10 to 3
listing.modegridgrid or list. A category's own layout overrides it
feeds.items201 to 100
listing.category_navoffShows the category filter on the blog home and category pages
template.defaultrailarticle or rail
widgets.sidebaremptyA comma list of categories, recent, tags, archive, search, in order, each once. Empty shows no sidebar
KeyDefaultRule
search.highlightoffShows a snippet with the matched words marked under each result
search.snippet_length22080 to 600 characters

urls.category_prefix (default category), urls.tag_prefix (tag) and urls.author_prefix (author) each take one lower-case word. urls.suffix is empty, .html or /. The three words must differ from each other and from the reserved segments (search, archive, feed, page, preview).

Sitemap#

sitemap.priority.post, .category, .tag and .author take a decimal from 0.0 to 1.0 (defaults 0.6, 0.5, 0.3, 0.3). sitemap.frequency.* takes one of always, hourly, daily, weekly, monthly, yearly, never.

Front end#

The front ends are covered in the package's own front-end guides for Blade, Livewire, Inertia and the headless interface. For Blade, the short version is that nothing needs building: the default layout links the shipped stylesheet. To change colours, publish the tokens with php artisan vendor:publish --tag=cwb-blade-tokens and edit public/vendor/coullworks-blog/tokens.css. To override a view, publish the set and edit it; a copy in resources/views/vendor/coullworks-blog wins over the package view.

Each front end has its own guide: Choosing a front end, Blade, Livewire, Inertia, Tokens and theming and Views and slots. Several blogs and languages are in Multi blog and languages.

Available for new work

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