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.phpholds what belongs to the application: the front end, table names, URL patterns, image storage, limits and the licence settings. Publish it withphp 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#
| Key | Default | What it does |
|---|---|---|
coullworks-blog.frontend | blade | blade, livewire, inertia or none (headless) |
coullworks-blog.blade.framework | tailwind | The Blade view set: tailwind or bootstrap |
coullworks-blog.blade.compiled_css | true | true 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.layout | null | Your own Blade layout, which must yield content and stack cw-head |
coullworks-blog.tables.prefix | cwb_ | Prefix of the package's tables |
coullworks-blog.images.disk | null | Filesystem disk for uploaded images |
coullworks-blog.images.widths | 480, 768, 1200 | Widths of the generated image variants |
coullworks-blog.listing.per_page | 12 | Posts per listing page |
coullworks-blog.feeds.items | 20 | Items in a feed |
coullworks-blog.licence.local_hosts | empty | Extra hosts treated as local. Honoured only outside production |
coullworks-blog.api.enabled | true | The JSON:API reads |
coullworks-blog.api.write.enabled | false | The 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#
| Key | Default | What it does |
|---|---|---|
seo.output.canonical, .hreflang, .open_graph, .twitter, .prev_next | on | Prints that tag group |
seo.output.jsonld.blogposting, .breadcrumb, .collection, .person, .faq, .video | on | Prints that structured data |
seo.robots_default | index,follow | The robots value of a page that sets none |
seo.tag_noindex_threshold | 2 | A tag page with fewer posts than this is noindex,follow |
seo.publisher.name | empty | The publisher in article data. Empty uses the blog name |
Listing and appearance#
| Key | Default | Rule |
|---|---|---|
listing.per_page | 12 | 1 to 100. A category's own page size overrides it |
listing.featured_count | 1 | 0 to 3 |
listing.mode | grid | grid or list. A category's own layout overrides it |
feeds.items | 20 | 1 to 100 |
listing.category_nav | off | Shows the category filter on the blog home and category pages |
template.default | rail | article or rail |
widgets.sidebar | empty | A comma list of categories, recent, tags, archive, search, in order, each once. Empty shows no sidebar |
Search#
| Key | Default | Rule |
|---|---|---|
search.highlight | off | Shows a snippet with the matched words marked under each result |
search.snippet_length | 220 | 80 to 600 characters |
Permalinks#
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.







