Skip to content
Available for new work
Pages in Blog

GuidePremium

Blogs and domains in CoullWorks Blog for Laravel

Create, edit, make default and delete blogs in the admin, with every field, the domain and path prefix rules, the blog switcher and what makes a delete refuse.

Updated 16 November 2026Back to the package pageBuy

One install can run several blogs. Each has its own language set, timezone, address, posts, categories, settings and redirects. The Blogs and domains screen is where you add and manage them. It is the second tab of the Settings cluster, next to Settings and Licence.

You need the ability blog.blogs.manage. While the licence is locked the screen is hidden.

The Blogs list, the default blog and the blog switcher#

The Blogs list with two blogs: Field Notes, the default, and Atelier on its own domain

One row per blog. Notice the green tick in the Default column on the first row, "any host" in grey where a blog has no domain, and the Edit link and three-dot menu at the right of each row.

Open Tools, Settings and choose the Blogs and domains tab. The list has a search box, a column picker and a New blog button at the top right. Rows are not paged until there are more than ten.

ColumnWhat it shows
NameThe blog's name. Searchable.
Default localeThe default language, as a badge such as en.
LocalesEvery enabled language, one badge each.
DomainThe domain the blog answers on, or "any host" in grey when none is set.
DefaultA green tick on the default blog. Exactly one blog is the default.
PostsHow many posts the blog holds.
CreatedThe date the blog was created. Hidden by default; turn it on with the column picker.

The row menu: Make default and Delete#

The three-dot menu open on the second row, with Make default and Delete

The menu on the Atelier row. Make default is offered because Atelier is not the default; on the default blog that item is missing.

  • Make default. Visible on every blog except the current default. It moves the default marker to this blog and clears it from the old one, so there is always exactly one default. In the admin, the default blog is the one the panel works on when you have not chosen another in the blog switcher and the host resolves none.
  • Delete. Opens a confirmation. If the blog still holds posts, the confirmation says "This blog still has N posts, so it cannot be deleted until they are moved or removed." Confirm and the package decides, and refuses with a red notification in these cases:

    • The default blog: "The default blog cannot be deleted; make another blog the default first."
    • The only blog: "This is the only blog, so it cannot be deleted. Create another blog first."
    • A blog that still owns content: "The blog still owns N posts." (or categories, tags or authors).

    A blog with none of those is deleted, together with its settings, its redirects and its 404 log. Nothing is deleted when it is refused.

The blog switcher#

The top bar shows a small drop-down with the current blog's name, to the left of your avatar. It appears only when the install has more than one blog.

The top bar of the admin with the blog switcher reading Field Notes

The switcher is a drop-down in the top bar. Choose a name and the page reloads for that blog.

Choosing a blog stores your choice in your session and reloads the page you were on. Posts, categories, tags, authors, redirects, settings, the AI screens and imports then all work on that blog. Your choice is yours only; another editor keeps their own. Without a choice the panel works on the blog its host resolves, then on the default blog.

Create a blog#

The Create Blog form with Identity, Language, Address and Status sections

Four sections. The red stars mark Name and Default language as required. The Address section shows its placeholders: blog.example.com and blog.

  1. On the Blogs list press New blog.
  2. Fill the form (each field is below). Press Create, or Create & create another to add a second one.
  3. A blog needs a name, a slug, a default language and at least one enabled language. If a value is refused, the message shows under its field and nothing is created.

Name#

  • Where: Identity section, first field. Required.
  • Values: text, at most 190 characters. Default: none.
  • What it changes: the name shown in the admin and the switcher, and the {blog} value in the SEO patterns.

Slug#

  • Where: Identity section. Needed to create a blog.
  • Values: lowercase letters, digits, dashes and underscores, starting with a letter or digit, at most 64 characters, and unique among blogs. Default: none.
  • What it changes: tells blogs apart internally, for example in commands and the API. It is not shown to readers. Changing it later does not change public addresses.

Default language#

  • Where: Language section. Required.
  • Values: one language from the list (a name and code such as English (en)), up to 12 characters of code. Default: en.
  • What it changes: the language readers see when the address names none. It must be one of the enabled languages, or the form says "The default locale must be one of the blog locales."

Enabled languages#

  • Where: Language section, a multiple choice list.
  • Values: one or more languages. Default: none shown on create; at least one is required.
  • What it changes: each enabled language gets its own public address, its own feed and a translation tab on every post.

Domain#

  • Where: Address section.
  • Values: a host name such as blog.example.com, lower-cased and trimmed on save, at most 253 characters. Default: empty.
  • What it changes: empty answers on any host. Set it when this blog lives on its own domain; then it answers only that host. Each distinct domain takes a slot in your licence, so adding a domain to a blog can take you over your licence's allowance: see Licence and support.
  • Refused when: another blog already uses the same domain and path prefix: "Another blog already uses this domain and path prefix."

Path prefix#

  • Where: Address section.
  • Values: a folder such as blog, without slashes at the ends (they are trimmed), at most 120 characters. Default: empty.
  • What it changes: the folder the blog sits in, so blog gives example.com/blog. Changing it moves every public address of the blog, so add redirects first or after; see Redirects.

Timezone#

  • Where: Address section, a searchable list of PHP timezones.
  • Values: any PHP timezone, for example Europe/London. Default: UTC.
  • What it changes: scheduled posts publish at this blog's local time.

Active#

  • Where: Status section, a toggle.
  • Values: On or Off. Default: On.
  • What it changes: an inactive blog answers nothing publicly. Its content is kept.

Edit a blog#

The Edit Blog form for Field Notes, filled in: name, slug field-notes, English as the only language, prefix blog, UTC and Active on

The same form with the blog's values. The button reads Save changes, and Cancel returns to the list. Notice the Domain field is empty here, so this blog answers on any host under /blog.

Press Edit on a row. The form is the one above. Change what you need and press Save changes. The same checks run: unique slug, unique domain and prefix pair, a valid timezone and a default language among the enabled ones.

What a request meets#

A public request is matched to a blog by its host and path. Blogs with a matching domain come first, and among them the one with the longest path prefix. A blog with no domain answers on any host. This is why two blogs can share a domain if their path prefixes differ (/en and /shop), and why two blogs cannot have the same domain and prefix.

Available for new work

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