Skip to content

Change Log

This holds the change history for Bonfire as we lead up to a 1.0 release. It's not exhaustive, but should give you a good idea of the changes that have been made and how it might impact you.

IMPORTANT! Breaking changes are marked with words breaking change in parentheses right after the date.

18 November 2026

Media: file and image fields. Blueprints, resource forms and action inputs can pick a file from the media library with the new file and image field types. Choose opens the library in a dialog, where the editor can search, open a folder, or upload a file and pick it. The field stores the file's ID, and an image field takes images only. A file that was deleted shows File not found, and the form won't save until the field is fixed. Read the file on the front end with the new media($id) helper, which is null for an empty field or a deleted file. Bonfire's controllers load it on every request, so if your app already defines a global media() function, yours is kept, and you'll need to read the file with model(MediaModel::class)->find($id) instead. See File and image.

16 November 2026 (breaking change)

Media: a media library. A new Media screen in the sidebar stores uploaded files. Upload several at once into a folder, browse by folder, search by filename or alt text, set a file's alt text, and move it to another folder without changing its URL. Deleted files go to the Recycler, and purging one removes it from disk. Uploads are refused when their extension isn't allowed or they're over the size limit, and SVG is off by default. It needs the new media.access, media.edit and media.delete permissions: run php spark migrate --all and php spark bonfire:permissions after updating. Until you migrate, the dashboard's Recycler widget and the Media screen fail with a database error, because the media table doesn't exist yet. See Media.

Resources: export to CSV. Add new ExportRecords($this) to a resource's actions() to let anyone with {permission}.list download its records as CSV: the checked rows from the selection bar, or every record matching the search and filters from a new Export CSV button above the list. The file has the list's columns and the text the list shows, and cells that a spreadsheet would run as a formula are escaped. Exports of more than 500 records run in the queue, and the toast links to the file. See Exporting to CSV.

Actions: return a file. ActionResult::file($path, $filename, $message) lets an action hand the admin a file. A run in the request downloads it straight away. A queued run's toast links to it, for the admin who started the run, for a day. Run php spark migrate --all to add the file column to action_runs. See Returning A File.

9 November 2026 (breaking change)

Content: search reads blocks, and no longer reads Markdown syntax. Admin search and content()->search() now match an entry's title and a new search_text column, in place of the raw body. It holds the body and every string in the entry's blocks, as plain text, so a page built from blocks can be found, and ** or a component's attribute no longer matches. Text from an embedded fragment isn't copied into the page. Fragment collections are left out of content()->search() unless you name one, and admin search still finds them. Run php spark migrate, then php spark content:reindex, after updating. Until you migrate, searching, saving an entry and reindexing all fail with a database error. Until you reindex, search finds existing entries only by title. See Searching.

Content: a list field type. A repeater with fixed sub-fields, for repeated items such as features, FAQs or pricing tiers. It works as a blueprint field and inside a block, is saved as a list of maps, and enforces min_items and max_items. field() returns the rows with each value cast by its sub-field's type. In the admin, rows come from the server and can be moved, duplicated and deleted like blocks, and an error is labelled by the row's position. Adding a row needs the app's encryption key. See Field types.

Content: make:block. php spark make:block hero writes a new block type into your app: its blueprint at resources/blueprints/blocks/hero.yaml and a partial in your block view folder that renders its fields. Files that exist are skipped and named, and the two files are yours from then on. make:block fragment writes a partial that renders the linked fragment's sections. See Blocks.

Content: fragments. Write a piece of content once and use it on many pages. A collection with fragments: true has no route, and its entries get drafts, the trash, preview, admin search and the admin like any other. content()->fragment('spring-sale') returns the published entry or null, and fragment('promos/spring-sale') names the collection. A built-in fragment block type links to one fragment, and $block->fragment() reads it in your own blocks/fragment.php. A cycle of fragments, or nesting more than 5 deep, renders nothing and logs an error. See Fragments.

8 November 2026

Content: an admin editor for blocks fields. A blocks field is now a list of collapsible cards, each with the block type's title, a summary, a drag handle, and buttons to move, duplicate and delete it. Add block lists the types the field allows and is disabled at max_items, and a field with max_items: 1 is a slot. The inputs of a new block come from the server and render through the same field partials as the rest of the form, so your own field types and copies of the input partials work inside a block. An error opens the card that has it, labelled with its position: Block 3 (Feature grid): The Title field is required. A block whose type no longer has a file shows as read-only and is saved back as it was. See Editing blocks.

If you copied src/Content/Views/fields/blocks.php into your app to change the blocks input, it still works but shows the old read-only list. Copy the new one to get the editor.

7 November 2026

bf:resource generates a resource. php spark bf:resource Product --model='App\Models\ProductModel' reads the model's table and writes the resource with a field for each column, plus Module.php, Config/Routes.php and a Config/Registrar.php that declares products.list|create|edit|delete, which show under Settings → Groups. Files that exist are left alone, and the command says what to add to them by hand. See Resources.

Actions: input fields. An action's fields() asks the admin for input in the confirm dialog, such as a reason, and handle() reads it with $context->input('reason'). Write the fields like a resource's. The endpoint validates them before it runs or queues the action: invalid input keeps the dialog open with the error under the input, and the no-JavaScript confirm page shows the same fields and errors. A queued run gets the same input, stored in the new action_runs.inputs column, so run php spark migrate --all. Works on any list, including hand-written ones such as Users. See Row and Bulk Actions.

Resources: row and bulk actions. A resource's actions() show in its list's row menus and, once rows are checked, in the selection bar. register() adds them to the action list named by the resource's $slug, with its model as the record source, so another module can add an action with service('actions')->for('products')->add(…). An action the user lacks the permission for isn't shown and the endpoint refuses it. Bonfire\Resources\Actions\DeleteRecords deletes records through the model, so a soft-deleting model sends them to the Recycler. See Resources.

6 November 2026

Resources: create and edit pages. Add create and edit to a resource's $pages for forms that render through Bonfire\Fields\Form with the save bar. Write the fields in PHP with the builders in Bonfire\Resources\Fields (Text, Textarea, Markdown, Toggle, Select, Integer, Date, Datetime, Decimal, BelongsTo, Field::make(…, type:)) and group them with Section. A save validates the field rules, then the model saves with its own, and one post shows the errors of both. {id} works in field rules, beforeSave() and afterSave() hook the save, can() decides per record, and a form.php beside the resource replaces the form. Column adds relation (category.name) and computed columns to the list. register() throws a ResourceException outside production when a field isn't in the model's $allowedFields, and logs it in production. See Resources.

Fields: belongsTo search. Above searchAbove records (default 100), a belongsTo field shows a search box instead of a dropdown. It lists matching titles as you type, from an admin endpoint that needs admin.access, the field's optional permission and a token signed with the app's encryption key. See Field types.

A decimal field type. It takes places (default 2), min and step, renders a number input and saves a string such as "19.99", so a DECIMAL column never passes through a float. See Field types.

Resources: a model in the admin as one class. Bonfire\Resources\Resource names a model, a URL slug, a permission prefix and the pages it has. service('resources')->register() in initAdmin() adds the sidebar item, and resource_routes() in Config/Routes.php declares the routes. A generic ResourceController renders the list: the columns, which leave out textarea and markdown fields unless columns() says otherwise, sorting, paging and htmx refresh, guarded by {permission}.list. Only the list page exists so far. A list.php beside the resource replaces the package's view. See Resources.

Resources: search, filters, global search and the Recycler. A resource's $search columns give its list a search box and put its records in the admin's global search. Its filters(), in the shape of a model's $filters, show in the Filters cell's panel and narrow the list. Search, filters, sorting and paging combine, and survive htmx refreshes. register() also adds a soft-deleting model to the Recycler. The Filters view cell takes a resource slug beside a model. See Resources.

6 November 2026 (breaking change)

The field system moved from Content to Bonfire\Fields. Resources and actions will use the same fields as blueprints, so Field, FieldType, FieldTypes and the generic types (text, textarea, markdown, toggle, select, integer, date and datetime) now live in Bonfire\Fields, the types under Bonfire\Fields\Types. slug, terms and entries stay in Bonfire\Content\Fields. Blueprints work as before. There are no aliases, so a custom field type, or code of yours that names the old classes, breaks until you change these:

  • Namespace. Bonfire\Content\Field is Bonfire\Fields\Field, Bonfire\Content\Fields\FieldType is Bonfire\Fields\FieldType, Bonfire\Content\Fields\FieldTypes is Bonfire\Fields\FieldTypes, and Bonfire\Content\Fields\ChoiceList is Bonfire\Fields\ChoiceList. A type that extends one of the built-in types, such as TextField, now finds it in Bonfire\Fields\Types. check() throws a Bonfire\Fields\FieldException, not a ContentException.
  • Two renamed methods. toFrontMatter() is toStored() and fromFrontMatter() is fromStored(), with the same arguments. ChoiceList::fromFrontMatter() is ChoiceList::fromStored(). key() and storedInFrontMatter() are no longer on FieldType: a type that overrides them implements Bonfire\Content\Fields\ContentFieldType instead.
  • The config key. Config\Content::$fieldTypes is gone. Register your types in $types of app/Config/Fields.php, which extends Bonfire\Fields\Config\Fields. The language strings Content.selectInvalid, Content.integerInvalid, Content.integerMin and Content.integerMax are Fields.* now.
  • The view path. Overrides of an input move from app/Views/content/fields/<type>.php to app/Views/fields/<type>.php, and now apply wherever a form uses fields. Copies in the old folder are ignored. The @var of the partials is Bonfire\Fields\Field.

The form behind an entry's fields is Bonfire\Fields\Form, and its view is Bonfire\Fields\Views\form_fields rather than Bonfire\Content\Views\form_fields. See Custom field types.

Content: blueprint sections. A blueprint can group its fields with sections: instead of fields:. Each section has a title, optional instructions and columns (1 to 3), and its own fields:. A field can set width: full, and markdown and textarea fields span the row by default. Storage stays flat, so a sectioned blueprint saves the same front matter as the same fields in one list. See Sections. If you copied entry_form.php, global_form.php or term_form.php from Bonfire\Content\Views into your app, they break: the controllers now give them $sections rather than $rows, which they pass to Bonfire\Fields\Views\form_fields as ['sections' => $sections]. That view still takes rows for a form with no sections. Bonfire\Fields\Form has a sections() method for other callers, and a custom field type can override isFullWidth().

Content: components in Markdown, and content_markdown(). $entry->content() now converts the Markdown, then expands any <x-…> View Components in it, so it works in controllers and feeds and not only when echoed in a view. A body with an <x-…> tag now gets that component's HTML in content(), and a tag for a component that doesn't exist throws a RuntimeException naming it, outside production. In production it's logged and the tag is removed. Pass content(components: false) for the old, Markdown-only output. The new content_markdown($markdown) helper renders any Markdown string the same way, for front matter and block fields. It isn't called markdown() because Postal already defines that. See Markdown and components.

viewMeta escapes attribute values. render() now runs every value of an addMeta(), addLink(), addScript() and addStyle() entry through htmlspecialchars(), so a " or & can no longer break out of a tag. If you escaped a value yourself before passing it in, it is now escaped twice, so pass the plain value. Titles and the content of raw scripts are unchanged. content_seo() was updated to match. See View metadata.

6 November 2026

Fields: belongsTo. A new belongsTo field type picks one record of another model. Give it a model class and a title column, and the form shows a dropdown of the records' titles and saves the chosen ID. A save is refused if the ID isn't a record of the model, and a blueprint whose model or title can't be found is refused. See Field types.

Content: blocks. A new blocks field type holds a list of typed blocks in an entry's front matter, such as a hero or a call to action. Block types are files in resources/blueprints/blocks, with a title, an optional icon and fields. $entry->blocks($field) returns a list you can loop over, filter with ofType() and render, $entry->block($field) is the first block, and $entry->renderBlocks($field) renders them in order through app/Views/blocks/<type>.php. A block's field() is cast by its blueprint, as globals() does. A missing partial throws outside production and is logged in production. max_items and min_items are enforced on save, with errors keyed by position. The admin lists the blocks and keeps them on save, but you write them in the entry's file. New Config\Content::$blockViewPath and FieldType::itemErrors(). See Blocks.

View metadata: no duplicates, and raw styles. An identical addMeta(), addLink(), addScript() or addStyle() entry, or identical raw script, is output once, so block partials can each declare the assets they need. New addRawStyle() and rawStyles() add a <style> block, and the App theme's layout prints it. If you keep your own copy of that layout, add <?= $viewMeta->render('rawStyles') ?> to the <head>. The docs also show how to give one page its own assets. See View metadata.

Content: reorganized docs. The Content pages are grouped by task in the nav. Reindexing and deploys have their own page, The index and deploys, and feeds and the sitemap moved out of Routing to Feeds and sitemaps. Configuration and commands lists every Config\Content property and content:* command. php spark bf:agents now points agents at the Content docs too, so run it again to update your AGENTS.md.

Docs: nested sections collapse in the side nav. The admin's Docs pages show a nested section of mkdocs.yml, like Content's "Modeling content", as a collapsible group in the side nav. It opens when it holds the current page.

5 November 2026 (breaking change)

The Recycler handles non-integer keys. So that it can list resources with UUIDs, CustomRecyclerRestore::recyclerRestore() and CustomRecyclerPurge::recyclerPurge() now take int|string $id, as do RecyclableResource::restore(), purge() and RecycleController::restore() and purge(). A model of yours that implements either interface with int $id is a PHP fatal error when the class loads, so change its signature to int|string $id. The key arrives from the URL as a string, and the routes now take (:segment). See The Recycler.

Recycler restore and purge are POST only. They changed data on a GET request, so a forged link or image could make a logged-in user restore or purge a record. recycler-restore and recycler-purge are now POST routes that always check the CSRF token, even if your app doesn't turn the filter on globally, and the list uses forms. If you link to these URLs, or have your own copy of listResource.php, change the links to forms with csrf_field(). A GET to either URL now gives a 404. See The Recycler.

5 November 2026

Content: scaffolding. php spark content:scaffold <collection> writes starting index and show views for a collection into app/Views/<collection>/, built from its blueprints' fields. The index view uses the pagination recipe and the show view calls content_seo(). --controller also writes a controller for the collection to hand off to. It never overwrites a file, says which ones it skipped, and prints the config line and the index route to add. See Scaffolding.

Content: $entry->isPublished(). It says whether an entry has the published status and its published_at has passed, the same rule as published(), so you can check the entries an entries field links to, which include drafts. See Entries.

Content: SEO values. $entry->seo() returns an entry's title, description, canonical URL and Open Graph values. A blueprint's seo key maps the fields that feed the title and description, which default to title and the body's first paragraph. content_seo($entry) adds them to the page's <head> through viewMeta, escaped. Config\Content::$autoSeo, off by default, does it for pages rendered from a collection's template. The App theme's master.php now also renders the link tags, which the canonical link needs: add <?= $viewMeta->render('link') ?> to a copy of your own. See SEO.

Content: redirects. When an entry's URI changes, because you moved a page in the tree editor or a reindex found a renamed file, a moved page or a changed route, its old URI now answers with a 301 to the new one, and so do the old URIs of the pages below it. They're kept in content/redirects.yaml, which you should commit with your content, and not in the index, so content:reindex --fresh keeps them. A published entry at a URI always wins over a redirect from it, a trashed or unpublished entry gets none, and a chain of moves ends at the latest URI. Routes of your own can use content()->redirectFor($uri); findByUri() still treats an old URI as missing. This replaces the "no redirects" limit noted for pages. See Redirects.

Content: front-end search. content()->search($term) returns a query on the published entries of every collection that have the term in their title or body, and content()->search($term, 'blog') narrows it to one collection. It works with paginate() and pager(), and Bonfire adds no search page, so build your own. See Searching.

Content: sitemap. content()->sitemap() returns a response with a sitemap of every collection's published entries, which you can serve from any route of your own. Entries with no URI are left out. Set $sitemap = true in app/Config/Content.php to have Bonfire serve it at /sitemap.xml. It's off by default, and your own routes win over it.

Content: editing globals in the admin. Each set of globals that has a blueprint gets an item in the Content menu and a form built from the blueprint, with the same field types and validation as entries. It needs content.access and content.edit. A save writes the YAML file whole and is refused if the file changed since the form loaded, like an entry. See Globals.

Content: draft preview. An entry's form has a Preview button for users with content.edit. It gives a signed link, good for 24 hours, that shows the entry through the collection's template or controller whatever its status, to anyone who has the link and with no login, so a client can review a draft. The response is noindex and never cached, and a collection with neither a template nor a controller has no preview. Links are signed with the app's encryption key. See Previewing a draft.

Content: page caching. A collection with cache: 3600 in its config has its routed pages served to guests from the cache for that many seconds. It's off unless a collection sets it. Only GET requests with no query string from guests that the fallback route serves with a 200 are cached. Saving, trashing, restoring or purging an entry, moving pages in the structure, saving a term or menu, and any reindex (including content:reindex) clear all of Content's cached pages. See Caching.

Content: globals. Keep site-wide values in content/globals/<handle>.yaml, describe them with a blueprint at resources/blueprints/globals/<handle>.yaml, and read them anywhere with globals('site')->field('name', 'default'). The value is cast by the blueprint's field type, and a missing one gives the default. Globals are read from the file, with no index or migration, work with auto-routing off, and have no routes. See Globals.

Content: collection feeds. content()->feed('blog') returns a response with a collection's published entries as an RSS 2.0 feed, to return from a route of your own. An optional /feed/{collection} route is behind $feedRoute in app/Config/Content.php, off by default, and your routes win over it. See Feeds.

Content: collection index pages. Listing a collection shows a route and view of your own that list a collection's published entries a page at a time, with pager links from $query->pager()->links(). Bonfire adds no index route, and paginate() still returns a plain list.

Content: structure editor save bar. Moving a page on the Edit structure screen now shows the save bar. Before, the bar stayed hidden, so with JavaScript on there was no way to save a new order. Discard opens the page again, which puts the pages back.

Content: admin search. The admin search box now finds entries. It matches the term in an entry's title or Markdown body, skips trashed entries, and shows nothing to users without content.access. Results show the title, collection and status, and link to the edit form for users with content.edit. See Editing entries in the admin.

Documentation in the admin. Outside production, the sidebar has a Documentation group that shows this guide for the version you have installed, with its structure read from mkdocs.yml. Anyone with admin.access can read it, and production has no menu and answers with a 404. See Documentation.

Wider documentation nav. On wider screens the page list beside the documentation grows to fit most titles, and a title that still wraps no longer runs into the next one. Pages also read more easily, with larger body text, smaller headings and shorter lines.

Check your Debug Toolbar config. If your app's app/Config/Toolbar.php has no $disableOnHeaders property, htmx requests such as the Content preview fail after the first one in development. See If htmx stops working in development.

Content: delete to trash. Users with content.delete can delete an entry from the list or its form, which moves its file to content/.trash/<collection>/ and takes it off the site. Content entries in the Recycler restores or purges it, with recycler.view. Deleting a page takes the pages below it, after a confirmation that says how many, and restoring brings them back in their exact place in the tree. A trashed entry keeps its slug and URI, and an entries link to it survives a save and works again after a restore. content:reindex goes by where the file is, so a trashed entry stays trashed after --fresh. You probably want content/.trash/ in your .gitignore, and a fresh clone followed by a reindex then loses that machine's Recycler contents. See Deleting and restoring.

Content: navigation menus. Add a config at content/navigation/<handle>.yaml and users with content.structure get an editor under Content in the sidebar, to build a menu from entries and typed-in links. The items live in content/trees/navigation/<handle>.yaml. navigation('main') returns them as a tree with title, url, active and children, and leaves out an item, and those below it, when its entry isn't live. An item that links to an entry takes its URL from the entry, so renaming a slug changes the menu by itself. The App theme has a sample partial at themes/App/_navigation.php, which a theme you already published needs to copy. See Navigation menus.

The Recycler's resource chooser works again. Picking another resource in the dropdown on Tools → Recycler did nothing. It now swaps the list in place with htmx and starts on the first page of the chosen resource.

Lithuanian translations completed. Content.php and Docs.php now have Lithuanian files, and the remaining keys were added to Bonfire.php, Email.php, Tools.php, Users.php and Widgets.php: the dashboard editor, Mail Previews and Outbox, the mailer list, the log viewer and system health, and the users and chart widget settings.

4 November 2026

Content: getting started and constraints. Getting started walks you from a fresh install to a published blog post. Content now explains the file-first model and when to run php spark content:reindex, which belongs in your deploy. Constraints and known gaps lists what Content doesn't do yet: it needs the content directory on one server or shared storage, it doesn't redirect old URIs, it drops YAML comments when the admin saves, it doesn't use git, and it has no per-collection permissions.

Content: pages and structures. Give a collection structure: true (and optionally max_depth) and its entries form a tree, kept in content/trees/collections/<handle>.yaml. The reindex gives each entry a parent_id, a sort and a URI built from its parents, such as /about/team, which the front-end route serves. Renaming a page or moving it updates the URIs below it. There are no redirects for the old URIs in this version. Users with content.structure get an Edit structure screen with drag and drop, which refuses a tree deeper than max_depth or one that changed on disk since it was opened. New entries go last at the root, and entries the tree file doesn't name are indexed there too. See Pages and structures.

Content: taxonomies and terms. Tags, categories and other taxonomies are now files. A taxonomy has a config at content/taxonomies/<handle>.yaml, and each term is a YAML file in content/taxonomies/<handle>/. A collection opts in with taxonomies: [tags], and keeps an entry's terms as slugs in its front matter (tags: [php]). A new terms blueprint field type tags entries from the admin. php spark content:reindex now fills the content_terms and content_entry_terms tables from the files, and content()->collection('blog')->whereTerm('tags', 'php') finds the published entries with a term. content()->terms('tags') lists the terms with their number of published entries. Terms have a list, a form to create them and a form to edit them in the admin, which need the content.structure permission, and with $autoRoute on a taxonomy can serve a page for each term from a route and a template. Nothing changes for a site that has no taxonomies. See Taxonomies.

Content: more field types, and your own. Blueprints can use select (one option, or several with multiple: true), integer, datetime and entries, which links to entries of the collections you name. Read the links with $entry->entries('related'), which skips a target that has since been deleted or trashed, or look entries up with content()->findMany($ids). Register a field type of your own in $fieldTypes in app/Config/Content.php. See Field types and Custom field types.

Content: edit entries in the admin. Content in the sidebar has an item for each collection, with a list of its entries and a form to create and edit them. The form is built from the collection's blueprint in resources/blueprints/collections/<collection>/<blueprint>.yaml, with text, textarea, markdown, slug, toggle and date fields. Saving checks the input, writes the entry's Markdown file in one step and updates the index. It refuses to save if the file changed on disk since the form was opened. Comments in an entry's front matter don't survive a save. Publishing, and setting published_at, need their own permission. Nothing changes for a site that has no collections. See Editing entries, Blueprints and Field types.

There are five new permissions: content.access, content.edit, content.publish, content.delete and content.structure. The last two are held back for later and nothing uses them yet. If you published your own AuthGroups, add them there, or run php spark bonfire:permissions, which declares them and grants content.* to superadmin and admin. Until you do, Content stays hidden from those groups.

3 November 2026 (breaking change)

php spark bf:install no longer overwrites theme files you already have. Running it again used to copy Bonfire's themes over themes/, discarding your edits to Admin, App and Auth. It now copies only the files that are missing and says how many it left alone. To replace your files with Bonfire's anyway, run php spark bf:install -f; that also discards your changes, so commit them first. If you counted on a second run to refresh the themes after an update, add -f or merge the files by hand.

php spark bf:install says when it could not make a change. It edits .env, app/Config/*.php and composer.json by looking for the text the framework ships. When that text is not there, for example after a CodeIgniter update, the installer used to skip the edit and still report success. It now names each file it could not update, what it looked for, and exits with an error. Config files it cannot copy correctly are not written. The SQLite3 option for app/Config/Database.php was one of these edits that did nothing on CodeIgniter 4.7. Running the installer again no longer adds app.indexPage or the SQLite3 .env lines a second time, keeps an existing encryption key, and keeps the final newline in .env.

3 November 2026

Asset URLs are built and read by one class. asset() and the /assets/... route now share AssetLocator, so the URL format can't drift between them. The URLs themselves are unchanged. asset() now marks a path in an unknown folder as a missing asset instead of raising a PHP warning, the route refuses .. segments, and asset_link() escapes the URL and any attributes you pass it.

Content: serve entries on your front end. Set $autoRoute = true in app/Config/Content.php, give a collection a route, and a template or a controller, and run php spark content:reindex. Your routes always win, and only published entries are served. content()->findByUri() does the same lookup for routes of your own, and $entry->content() renders the Markdown. Nothing changes unless you turn this on. See Routing.

Content: read file-based content from your code. Keep entries as Markdown with YAML front matter under content/, index them with php spark content:reindex, and query them with content()->collection('blog')->published()->paginate(). Run php spark migrate --all to create the index tables. Nothing changes until you do this: there's no admin screen or routing yet. See Content.

One Mailable file that can't be loaded no longer breaks Mail Previews. A parse error or a missing parent class in a file in a Mails folder used to give a 500 on Tools → Mail Previews and on every preview and send. The list now shows that Mailable with its error, its preview page shows the same error, and the others work as before.

Mail Previews' Send to me no longer claims a discarded or logged mail was sent. Sending through the null mailer now says the message was discarded, and through log that it was written to the log, the same as the test send in Settings → Email. A failover chain is judged by its first mailer.

2 November 2026 (breaking change)

Mail Previews' Send to me drops more recipient headers. Resent-* headers and Disposition-Notification-To are removed from the preview, so sendmail can't deliver it, or a read receipt, to anyone but you. Reply-To is kept.

Mail Previews' Send to me refuses a looping failover chain and hides secrets in errors. A chain that loops now shows an error and sends nothing, where before it crashed PHP. A failed send shows the error with the mailer's known secrets, and those of its failover children, removed, the same as the test send in Settings → Email.

Branded Markdown activation and two-factor emails. New installs send them with your site name and accent color, and a plain text part. This doesn't change your emails when you update: your published app/Config/Auth.php keeps its HTML views until you add action_email_activate_markdown and action_email_2fa_markdown to $views. An app that never published Auth.php does switch on update. The magic link email stays as it is. See Your email templates.

Settings → Email no longer edits mail transports. The protocol, SMTP and sendmail fields are gone: mail is configured in app/Config/Mailer.php and .env. The page now lists every mailer with its transport and settings, marks the default, links failover chains to their mailers, and shows secrets only as Set or Empty. It warns while the legacy bridge is active, while old transport rows are still in the settings table, and when the default mailer discards mail or isn't defined. You can still edit the From name and address, and a new Test send mails a fixed message to an address you type, through a mailer you choose. Installs on the bridge keep sending as before, but change these settings in .env or app/Config/Email.php, or move to Mailer.php with php spark bonfire:email-env. See Email Settings.

Tools → Mail Previews shows your Mailables in the admin, in every environment: the HTML, plain text and raw MIME of each one, and a Send to me button that mails it to your own address through a mailer you choose. It needs the new email.preview permission. You publish your own AuthGroups, so run php spark bonfire:permissions, which grants email.* to superadmin and email.preview to admin. Until you do, the screen stays hidden. See Mail Previews.

Tools → Mail Outbox logs every email your site sends and every send that fails: the addresses, subject, status, error, attachment names and the Mailable that built it, never the message body, because magic link and password reset emails carry live login tokens. Filter it by status, mailer, recipient and date. Settings → Email has a new Days to keep (Email.logRetentionDays, 30 to start with); 0 turns the log off. php spark email:prune deletes older rows, and about one send in a hundred prunes too. The Outbox needs the new email.log permission, granted to superadmin only. Run php spark migrate --all to create the email_log table, and php spark bonfire:permissions to grant the permission. Until you do, the screen stays hidden, and a missing table never stops an email from sending. Every row is logged under the default mailer, because Postal doesn't tell listeners which named mailer sent a message. See Mail Outbox.

Two new dashboard stat cards, Mail sent, last 7 days and Mail failed, last 7 days, come from the Outbox. The failed card turns red while its count is above zero and links to the Outbox filtered to failures. They need email.log and are hidden while Days to keep is 0. A stat card can now turn red while its value is above zero with the new highlightNonZero key, and take its value from a closure with addValueUsing(). See Mail Outbox.

Mail keeps working after this update, and you don't have to do anything. Without an app/Config/Mailer.php, Bonfire now makes a deprecated legacy mailer the default. It sends through the transport your setting('Email.*') values describe, read at send time, so a Mailable no longer lands in Postal's null mailer, which discards it.

The breaking part: if your app sends Postal Mailables and has no app/Config/Mailer.php, those messages used to be discarded and now really go out, through PHP's mail() if nothing is configured. To keep discarding them, for example in development, publish a Mailer.php with $default = 'null'. Once that file exists, Bonfire steps aside completely.

The bridge logs a deprecation notice and is removed in 2.0. See The legacy mail bridge for how to leave it, and ADR 0008 for why.

php spark bonfire:email-env helps you move mail transport settings out of the database. It prints .env lines and an app/Config/Mailer.php snippet for your install, and labels where each value comes from. --purge then deletes the transport settings from the settings table, including any plain text SMTP password, and refuses to run until the app has its own Mailer config. See Moving mail settings into code.

Bonfire now sends its mail through Postal, which it requires. Mail keeps working: you don't have to change anything for your activation, two-factor and magic link emails to go out. But the SMTP fields have left Settings → Email, so run php spark bonfire:email-env to move that config into code.

The activation and two-factor emails are now the Postal Mailables Bonfire\Auth\Mails\ActivationMail and TwoFactorMail. They still render the views named in Auth.views, so customised templates keep working. The activation email is now always sent as HTML; before, it followed Email.mailType and came out as HTML source with the default text. The magic link still goes through Shield.

The From name and address in Settings → Email are now the site-wide default: a Mailable without a From gets them, and one with its own From keeps it. See How Bonfire sends mail.

30 October 2026

The users list has an Erase personal data action, for one user or many. It runs every registered personal data provider in one transaction: the user's name is replaced with deleted-user-{id}, their avatar, meta, sign-in identities and remember tokens are deleted, their consent records are removed, and the account is deactivated, soft-deleted and marked with a new erased_at column. The row stays so content that points at it keeps working; login rows stay for security audits, without the email address. Erased users don't appear in the Recycler and can't be restored or purged. It needs the new users.erase permission, which only superadmin has (through users.*). See ADR 0006.

Actions that run in the request, not only queued ones, are now recorded in action_runs, so every run has an audit trail. With Include completed runs on, the Action runs dashboard widget lists them too.

A user's edit screen has an Export data button that downloads everything the site holds about them as user-{id}-data.json: their account, meta, avatar, sign-in identities (without password or token hashes), login history and consent records. Each export is logged as a notice. It needs the new users.export permission, which superadmin has through users.*; run php spark bonfire:permissions to grant it to admin. Modules add their own data to the export by implementing Bonfire\Privacy\PersonalDataProvider and registering it with service('personalData')->register() from initAdmin().

Three consent banner fixes. An absolute cookie policy URL (https://...) is now used as-is; before, it was run through site_url(). The consent cookie now lasts Consent.consentLength days instead of a fixed 180, and is set for the whole site. Closing the banner with its X now rejects all non-essential cookies, so it stops reappearing on every page. If you published your own consentFormScripts view, copy the change from consent_scripts.php.

Items added straight to a menu with Menu::addItem(), outside any collection, now show in the sidebar, the command palette and the breadcrumb. Before, the Admin theme skipped them. If you published the Admin theme, copy the change from Components/sidebar.php and _palette.php.

The admin's settings screens (General, Users, Email, Consent, User Groups), System Info, the consent banner, the site offline page and dashboard stat titles now take their text from language files, so they can be translated. New keys have Italian, Lithuanian and Russian translations, and Spanish ones for Bonfire.php and Settings.php. These are machine-made, so corrections from native speakers are welcome.

In Settings → Users, the "Remember for" option labelled "25 hours" kept users logged in for 24 hours. It now reads "24 hours".

Logging in with Remember me no longer fails with a TypeError from Time::addSeconds(). Settings → Users saved the remember length as the string the select posted, and Shield passes it straight to Time::addSeconds(), which requires an int. The page now saves an int, the select shows the saved length as selected, and a migration casts values saved by older versions: php spark migrate --all. A saved 0 (the "How long to remember..." placeholder) becomes the 30-day default.

php spark make:crud, which never ran, is now php spark make:module. It writes a working admin module for an existing model: a list with search, a create and edit form, row and bulk delete, permissions and a feature test. See Generating a Module.

New admin guides cover the shipped screens: Users (including Settings → Users), General Settings, Email Settings and Tools (System Info and Logs). Bonfire Modules now lists every shipped module.

A new page, Menus, lists every MenuItem key, the collection and menu methods, custom menus, and reordering with $menuWeights.

A menu item's altText now shows as its link's tooltip (title) in the sidebar, the settings nav and the dashboard quick links. Before, the Admin theme ignored it, and MenuItem::altText() threw a TypeError on an item without one; it now returns null. If you published the Admin theme, copy the change from Components/sidebar.php and Components/settings-layout.php into your copy.

A menu item or collection given an iconUrl now shows its icon. The <img> tag used href instead of src.

The Authentication page now lists Bonfire's defaults for registration, magic links, redirects and the email activation and 2FA actions, and shows where to change each one. It also documents the Auth theme's <x-auth-card> and <x-unsplash> components.

Common functions now covers every helper in src/Common.php: has_error(), error(), render(), admin_accent() and site_offline(), alongside app_date(). A new Maintenance mode section explains how to take the site offline, who can still get in, and how to get back in if you're locked out.

View Components now lists the attributes of every component and has a Pager templates section covering bonfire_full, bonfire_simple, bonfire_list_hx and the rest.

The docs map that php spark bf:agents writes into AGENTS.md now also points agents to the Auth, Consent, Meta Info and Asset Management references, the request flow, published themes and updating Bonfire. Re-run the command to pick it up.

The bonfire_simple pager template no longer prints a stray ?> above its links.

A new page, Testing Your Admin Module, shows how to write feature tests for a module in your app: a base test case that registers Bonfire's modules, giving test users your module's permissions, and testing access checks and htmx requests.

Bonfire now registers each module under its real namespace, like Bonfire\Users or App\Modules\Blog, instead of Bonfire\{Users}, so php spark migrate -n "Bonfire\Actions" finds a module's migrations. php spark migrate --all is unaffected. Rows already in your migrations table keep the old Bonfire\{…} namespace, so on an existing install keep using --all: -n filters history by namespace and would try to run those migrations again.

30 October 2026 (breaking change)

Bonfire now deletes personal data it no longer needs on a schedule. A new Privacy config sets how many days to keep it (null keeps it forever): login attempts and access token logins for 90 days, and consent records for 365 days once a newer answer replaced them or their consent expired. php spark bf:privacy:prune does the work, and modules prune their own data by implementing Bonfire\Privacy\PrunesPersonalData. System Info warns when pruning hasn't run for over a week.

Bonfire now requires codeigniter4/tasks, and codeigniter4/queue moved from suggest to require. To schedule the prune on an existing install:

  1. Run php spark tasks:publish if you have no app/Config/Tasks.php, and remove the example tasks it contains.
  2. Add this line to its init() method:

    \Bonfire\Bonfire::schedule($schedule);
    
  3. Run php spark tasks:run every minute from cron:

    * * * * * cd /path/to/your/site && php spark tasks:run >> /dev/null 2>&1
    

New installs get steps 1 and 2 from php spark bf:install.

The consent form can now be reopened, so visitors can change or withdraw consent: put consent_settings_link() in your layout's footer. Saving posts to a new consent-save route, which sets the bf_consent cookie server-side, appends a row to a new consent_records table (no IP address or user agent) and reloads the page, so has_consent() checks apply at once. Closing the form with its X keeps what the visitor accepted before and rejects the rest, so on a first visit it still rejects everything non-essential. Visitors who answered before are asked again when you add a consent, and any consent can be marked 'locked' => true (the default required consent is). The default text is translated. See Consent.

Two things to do before you run php spark migrate --all:

  • Text edited in Settings → Consent: the message, policy title and consents are no longer editable there, and the ForgetConsentText migration deletes their stored values so the config and language files take effect. Copy any text you changed into app/Config/Consent.php first, which php spark bf:install published. Language keys (File.key) are translated; anything else, like the English text already in your published config, is shown as-is. Add 'locked' => true to its required consent, since the form no longer treats that key specially.
  • Custom $consentForm view: the form is now a <form> that posts to url_to('consent-save'), with checkboxes named consents[<alias>] and submit buttons named choice. See Customizing the Consent Form for the full contract, and update your view to match. A custom $consentFormScripts view should drop its cookie handling; see consent_scripts.php.

A new Settings.php language file (src/Settings/Language/) holds the General Settings text. CodeIgniter merges language files of the same name, so if one of your modules has a Settings.php language file, its keys now merge with Bonfire's and a matching key changes Bonfire's text. Rename your file to avoid that.

29 October 2026

Four config keys now do what they say. Users::$avatarResizeFloor sets the smallest allowed avatar size, Users::$avatarDirectory also sets where avatar links point, and Users::$avatarNameBasis = 'username' takes an avatar's letters from the username, not the email. Users::$includeMetaFieldsInSearech is now spelled $includeMetaFieldsInSearch; published configs that still use the old spelling keep working. The unused Themes::$haveComponents is gone.

POST admin/settings/groups, without a group alias, now returns 404. It used to throw an ArgumentCountError.

A new page, Configuration Reference, lists every key in the published config files with its default and what it does, including keys that weren't documented before.

The Users sidebar item now needs users.list, the permission the users list page checks, not users.view. The admin and developer groups now see it.

The Users, Email and System Info settings pages now check permissions in the controller, not just in the sidebar. Users without users.settings (Users) or admin.settings (Email, System Info and PHP Info) are sent back to the admin dashboard, even if they type the URL.

A new page, Admin Controllers, Views and Themes, covers AdminController, the render() helper, the master layout's sections, and overriding the published Admin theme.

A module's initFront() now runs on public requests. Bonfire boots once per web request from a new bonfire filter, which runs on every route after the session and admin filters, instead of from the admin filter. Bonfire now caches the modules it finds in Config\Bonfire::$appModules for a minute; run php spark cache:clear to pick up a new module folder straight away. See The Module File.

A new tutorial, Build Your First Admin Module, walks you from an empty folder to a working list screen with a permission, search, filters, global search and the Recycler.

A module can now add its own permissions, and grant them to groups by default, from its Config\Registrar instead of asking you to edit app/Config/AuthGroups.php. The new php spark bonfire:permissions command applies the grants. New installs run it for you; after updating, run php spark bonfire:permissions yourself, and again whenever you add a module. See Permissions.

A Composer package can now add a Bonfire module by listing it in the new Config\Bonfire::$packageModules, from its own Config\Registrar so the app using it changes nothing. See Modules in Composer packages.

The email settings page now saves the SMTP port and timeout as integers. Sending SMTP mail no longer fails with a fsockopen() TypeError, and port 465 turns on implicit SSL again. A custom port must now be a positive number. Thanks to Alistair Wearring for the report and fix.

Resource tabs added with service('resourceTabs')->addTabFor() are now shown as the current tab on their own page. On group pages, (id) in a tab's URL is now replaced with the group's alias instead of being left in the link. The Resource Tabs page now shows how to build the page a tab links to.

ComponentRenderer::render(null) now returns an empty string instead of throwing a TypeError. Text like <x- /> is left alone instead of failing the page with "View not found for component". Paired components with one- or two-letter names (<x-em>…</x-em>) now render, and a closing tag that doesn't match its opening tag's name is left alone rather than rendering a shorter-named component. A > inside a quoted attribute of a paired component (<x-foo title="a>b">…</x-foo>) no longer cuts the attribute short.

A new php spark bf:agents command writes a guide to Bonfire's conventions for AI coding agents into your project's AGENTS.md: where things live, the rules for admin modules, and which docs page to read for each task. Your own text in that file is kept, and running it again only replaces Bonfire's section. Add it to the post-update-cmd scripts of your composer.json to keep the guide in step with the installed version. See Working With AI Agents.

A Recycler dashboard widget (recycler:summary) shows how many deleted records each Recycler resource holds, leaving out those with none, and links each to its list in the Recycler. Resources other modules register with service('recycler') appear in it without extra setup. It needs the recycler.view permission; add it from Add widget on the dashboard. The existing "Users in Recycler" stat stays, since saved layouts use it.

A System health dashboard widget (tools:systemHealth) lists problems with the install: each file or folder in writable/ that can't be written to, a missing .env file, and server load above a limit you set (default 4). When there are none it says so, and it links to the System Info page. It needs the admin.settings permission; add it from Add widget on the dashboard. The checks moved into Bonfire\Tools\Libraries\SystemHealth, which System Info now uses too.

An Action runs dashboard widget (actions:runs) lists your own queued, running and recently failed bulk action runs, newest first, each linking to its progress. Settings choose how many to show, how many days of ended runs to include and whether completed runs appear. It needs no permission; add it from Add widget on the dashboard. Opening a run's progress link (action-run) directly now shows it inside the admin page rather than as a bare fragment. ActionRunModel now returns created_at and updated_at as CodeIgniter\I18n\Time rather than strings.

A Recently active dashboard widget (users:recentlyActive) lists the users active within the last 5 minutes, hour or 24 hours, most recent first, each linking to their account. It needs the users.list permission; add it from Add widget on the dashboard.

A Recent failed logins dashboard widget (users:failedLogins) lists the newest unsuccessful login attempts across all accounts, with the identifier, IP address and date. Attempts by a known user's email link to their Security tab for admins who may open it. It needs the users.view permission; add it from Add widget on the dashboard.

29 October 2026 (breaking change)

An action run's lifecycle now lives in service('actionRuns') (Bonfire\Actions\ActionRuns): dispatch() runs an action in the request or queues it, process() runs a queued run, and progress() and toast() look one up for the admin who started it. ActionRunModel now reads and writes status as a Bonfire\Actions\RunStatus enum in place of the strings queued, running, done and failed, so code that writes a status string to it must pass the enum. The Admin theme's <x-action-run> now calls service('actionRuns')->toast() rather than ActionRunModel; installs that published the Admin theme should copy the new themes/Admin/Components/action-run.php.

Picking an accent color swatch under Settings → General → Appearance now shows the save bar, so the new color can be saved. Before, only the color picker itself did.

28 October 2026

spark notify:breaking-changes used to keep its marker in a last-update.txt file inside the package folder, which composer update deleted together with the previous version, so it warned on every update. It now remembers the breaking change it last reported in writable/bonfire-breaking-changes.json: expect one more warning after this update, and none for changes you have already been shown.

The check also notices a note added to an existing (breaking change) heading, not only a new heading, and a fresh install no longer warns about changes that came before it. If writable/ is recreated on every deploy, move the marker with Config\Bonfire::$breakingChangeStateFile. See Updating Bonfire.

The dashboard's widget library now lists widgets by the module that adds them, in name order, in place of by type. A widget's group() gives its module's name; the type keys quickLinks, stats, charts and custom still work, each under its own heading. A StatsItem or ChartsItem takes 'module' => '…' (see Dashboard Widgets). With the library open, the page now widens by its width instead of narrowing the dashboard, where the screen has room.

The sidebar now shows Settings as a single link to the first settings page you may open, since the settings pages list one another in their own nav. A menu collection opts into this with setPageNav(). Installs that published the Admin theme keep the old expanding Settings menu until they copy the new themes/Admin/Components/sidebar.php.

Each admin can now change a dashboard widget's settings for their own dashboard: in edit mode, its sliders button opens them in a panel, and they are saved with the layout (see The Dashboard). Stat cards, charts and Log activity have settings; until an admin changes one, it follows the site-wide value in Settings → Widgets. Widgets declare their settings with fields(), a list of Bonfire\Dashboard\WidgetField, and get their values in render(WidgetValues $values); DashboardWidget::settingsUrl() is gone (see Dashboard Widgets).

The Log activity widget now shows a column for each of the last days up to today, with a thin line for days without a log file. Its Days to show setting (formerly Log files to show) keeps its saved value, and now defaults to 7.

Dashboard widgets can need a permission: pass 'permission' to a StatsItem or ChartsItem, and admins who lack it don't see it in the widget library or on their dashboard, nor is its data fetched for them. The built-in Users widgets need users.list and the Groups widgets groups.settings. Admins with widgets.settings can Save as site default from the dashboard's edit bar, and Reset site default in Settings → Widgets (see The Dashboard). The Settings → Widgets switches are now labelled as choosing which widgets are available. Quick Links is now a native widget, Bonfire\Dashboard\Widgets\QuickLinksWidget, registered by the Dashboard module under its old id, and no longer in the default Dashboard.cells; installs that still list Bonfire\Dashboard\DashboardCells::quickLinks show it once, in place. DashboardCells::quickLinks() is deprecated. Building widgets is documented in Dashboard Widgets.

28 October 2026 (breaking change)

StatsItem::addValue(), addValueByFreeQuery() and ChartsItem::addDataset() now store their query and run it when the item's value or data is first read, which the dashboard does only for the widgets it shows. They keep their signatures. service('dashboardContext'), Bonfire\Widgets\DashboardContext, LayoutResolver::includes() and CellWidget::aliasOf() are gone: a value you build by hand belongs in a widget's render() (see Dashboard Widgets), which the dashboard calls only for a widget that is placed and permitted. A view that still calls the WidgetCells::stats or ::charts cell directly now runs the query of every item it lists. Tests that injected a DashboardContext mock no longer need one.

Settings → Widgets is gone. Permissions decide who may see a widget, and each admin's settings for a placed widget decide how it looks, so the page's switches and defaults repeated them. Every widget is now offered to anyone who holds its permission(): a widget switched off there is offered again. A placed widget follows its fields' coded default until the admin changes a setting, so a site-wide default saved there, such as a chart's color scheme, no longer applies. Run php spark migrate --all: a migration forgets those stored values. Delete any published copy of the removed Config classes below (such as app/Config/Stats.php), which extends a class that is gone. This replaces what the notes below say about Settings → Widgets. Reset site default has moved into the dashboard's edit bar, next to Save as site default, for admins with widgets.settings (see The Dashboard). Code that used the removed API: WidgetField's factories no longer take key: (a key passed by position now lands in description), and WidgetField::inherited() is gone (read default); Bonfire\Widgets\WidgetOptions and the Bonfire\Widgets\Config\Stats, LineChart, BarChart, DoughnutChart, PieChart, PolarAreaChart and LogActivity classes are gone; ItemSettings keeps only widgetId(); and ItemWidget::available() is gone. The widgets-settings and widgets-reset-layout routes are gone; the reset is now dashboard-site-layout-reset.

The five User classification by group charts (line, bar, doughnut, pie and polar area) are gone: Users by group shows the same numbers. Saved dashboards that placed one lose it: add Users by group from the widget library. The User Groups stat card stays. ChartsItem is unchanged, so modules can still add charts of their own.

Log activity is now a dashboard widget of its own, Bonfire\Tools\Widgets\LogActivity, like Recent errors. It keeps its id logs:logActivity, so saved layouts keep it in place, and its days and Debug defaults in Settings → Widgets keep their saved values. It no longer has a switch under Available widgets: every admin with logs.view can add it, even where it was switched off. It is no longer an item of service('widgets')->widget('logs'), so the Bonfire\Widgets\Cells\WidgetCells::logs cell no longer shows it. Code that calls it directly: days() and levels() now take the options as arguments, days(int $count, bool $hideDebug) and levels(bool $hideDebug); render() takes a WidgetValues; and setTitle(), withOptions(), module() and settings() are gone.

List rows are now selectable whenever the admin may run any of the list's bulk actions, not only when they may delete: a module's bulk action shows the checkboxes on its own. A row's checkbox is disabled when no bulk action allows() that record. ActionList::selectable() answers both, and ActionList::showing() hands a page's records to <x-row-actions>, which no longer loads its record with one query per row once the view calling it does so. Installs that published the Admin theme should copy the new themes/Admin/Components/row-actions.php, themes/Admin/Search/users.php and themes/Admin/_table_head.php; _table_head.php now shows the select-all checkbox only when $showSelectAll is true, rather than whenever it is set and the admin has users.delete.

Each widget's fields() is now the only place its settings are declared: the Settings → Widgets tabs are built from the fields that have a key, one tab per settings class, and saved through them. Values you saved there keep working. The properties of Bonfire\Widgets\Config\Stats, LineChart, BarChart, DoughnutChart, PieChart, PolarAreaChart and LogActivity are gone, so a default overridden in a published copy of those classes or in .env no longer applies: set it in Settings → Widgets instead. The line chart's subtitle and custom border settings, which had no form, are no longer read. WidgetOptions keeps only all(), forAlias(), save() and reset().

Users by group is now a bar list: each group, a bar scaled to the largest one, and its number of users, with a setting to sort by count or by name. It is a new widget, users:byGroup, in place of the Users by Group stat card (stats:usersExpTable693), which is gone. Saved dashboards that placed the stat card lose it: re-add Users by group from the widget library. Two new widgets: Newest users (the latest users to join, linking to each; needs users.list) and Recent errors (the newest errors, or errors and warnings, across the log files, linking to each log file; needs logs.view). The default dashboard now has Users by group and Newest users in its Users section, in place of the Users in Recycler stat, and Log activity and Recent errors side by side in Monitoring (see The Dashboard). Installs that published the Admin theme need the new .bf-list-card, .bf-bars and .bf-rows rules of themes/Admin/css/admin.css.

Lists have a shared system for row and bulk actions (see Row and Bulk Actions): an action is one class, registered on a named list, run through POST admin/actions/{list}/{action} with permission, CSRF and per-record checks, confirmation (with or without JavaScript), and an optional queue through codeigniter4/queue. Run php spark migrate --all for its new action_runs table. The Users and Logs deletes use it, which removes routes: GET admin/users/{id}/delete and POST admin/users/delete-batch are gone, as is UserController::delete() and deleteBatch(). Links or forms that used them must post to admin/actions/users/delete-users instead, with the IDs in selects[]. The Users and Logs list checkboxes are now named selects[] with the ID as their value. Every inline confirm() is replaced by <x-confirm-dialog>, which also handles hx-confirm. Installs that published their own copy of the Admin theme must re-publish it: master.php gains <x-confirm-dialog /> and <x-action-run />, and the lists use the new <x-row-actions> and <x-bulk-actions>.

<x-switch> gained an offValue attribute: the value its hidden input posts when the switch is off (0 by default). An empty offValue posts nothing, which Bonfire's own views now use for array names like permissions[]. Installs that published their own copy of the Admin theme must re-publish it; an older copy posts 0 for every switch that is off in those lists. The user edit screens (details, permissions and security) use the new admin layout.

The settings pages share a new <x-settings-layout> component (the Settings head and a sub-nav of the settings pages). An older published copy of the Admin theme doesn't have it, so re-publish the theme or those pages fail to render. Turning Site Online off now saves 0; the offline check treats any empty value as offline.

The Logs, log view, Recycler and System Info pages use the new admin layout, with styles an older published copy of the Admin theme doesn't have, so re-publish the theme. A log file can now be downloaded from its page.

A new Log activity dashboard widget charts the entries of the newest log files per level (see The Dashboard). Turn it on in Settings → Widgets; its own tab sets how many files it shows and whether Debug entries are left out. It is shown by a new Bonfire\Widgets\Cells\WidgetCells::logs cell: installs with their own Config\Dashboard must add that cell to $cells to see it. Its styles are in the Admin theme, so re-publish the theme.

Each admin can customize their own dashboard (see The Dashboard): Customize lets them drag widgets into a new order, group them into titled sections, size them (¼ / ⅓ / ½ / ⅔ / Full, from their tools or by dragging a corner), remove them and add others from a widget library, all of it also from the keyboard, with undo and redo. Save layout stores the layout as theirs alone; saving the default layout, after resetting to it, forgets theirs. Every stat card, chart, Log activity and custom cell in Dashboard.cells is now one widget, and modules can add their own by implementing Bonfire\Dashboard\DashboardWidget and calling service('dashboard')->register() in initAdmin() (see Dashboard Widgets). The switches in Settings → Widgets now decide which widgets are available in the palette, and are on unless a site admin switches them off; their stored keys are unchanged. The default dashboard is the new Dashboard.layout config property: Quick Links, a Users section (Users by Group and Users in Recycler) and a Monitoring section (Log activity). Stats, charts and Log activity no longer appear on it by being switched on, and each admin adds the ones they want from the widget library. Installs with their own Config\Dashboard and no $layout property get the plain cells of Dashboard.cells (Quick Links and your own cells) instead. A stats or chart item now fetches its data only when it is on the viewer's dashboard, so service('dashboardContext')->shows() answers "is it in the viewer's layout". The dashboard needs the new admin/js/dashboard.js and new admin.css rules from the Admin theme, so installs that published their own copy of the Admin theme must re-publish it; with an older copy the dashboard shows its widgets stacked in one column and Customize does nothing.

Also fixed: a custom SMTP port is saved and shown again, and a user's name, profile fields and avatar initials are escaped wherever the admin shows them. The Recycler's Restore button no longer asks for confirmation; Purge asks first.

27 October 2026 (breaking change)

The Admin theme is being redesigned. Installs that published their own copy of the Admin theme must re-publish it: Bonfire's admin views now use new View Components (<x-setting-row>, <x-switch>, <x-segmented>, <x-chip>, <x-status>, <x-empty-state>, <x-selection-bar>, <x-tabs>, <x-save-bar>) that an older copy doesn't have, and the shell (master.php, _header.php, Components/sidebar.php) has a new layout. <x-page-head> and <x-admin-box> gained optional attributes and keep working as before without them; <x-button> no longer adds btn-lg. Escape component attribute values with esc(): the renderer now decodes HTML entities in attribute values before handing them to the component, so a custom component that prints an attribute must escape it. See View Components.

Dashboard stats widgets are now neutral cards, so a StatsItem's bgColor no longer has a visible effect.

The admin shell has a collapsible sidebar (remembered per viewer), a breadcrumb, a dark-mode toggle and a ⌘K / Ctrl+K command palette that jumps to any admin page or runs a search. Admin pages below a menu item can name themselves in the breadcrumb with a crumb view section (and crumbParent, when the page isn't under the active menu item).

The admin theme has an accent color. Change it under Settings → General → Appearance, or set it from code with setting('Site.adminAccent', '#2F6FEB'). It must be a #rrggbb hex color. Buttons, links, focus rings and checked inputs follow it. The admin also gains a dark mode that follows the operating system until a viewer picks one, and it now uses the Geist font. Installs that published their own copy of the Admin theme need to re-publish it to get the new tokens; until then the accent setting saves but has no visible effect.

11 October 2026 (breaking change)

Bonfire no longer adds a users rule group to Config\Validation. Nothing in Bonfire used it, and because Config\Validation does not declare $users, it raised a "Creation of dynamic property" deprecation under PHP 8.2+. The rules for the user form live in Bonfire\Users\Config\Users::$validation. If your app calls $this->validate('users'), add the rules you need to your own app/Config/Validation.php as public array $users. If you already declare $users there, Bonfire no longer merges its email, username, first_name and last_name rules into it, so add any of those you rely on.

Fixes: Bonfire found no themes under CodeIgniter 4.7.5, so every admin and auth page failed with "Admin is not a valid theme folder". Theme::available() now lists theme folders itself instead of using get_dir_file_info(), which no longer returns folders.

8 October 2026 (breaking change)

The Recycler no longer guesses at what a model can do by checking method_exists(). A model that customizes the Recycler must now implement the matching interface from Bonfire\Recycler\Interfaces: CustomRecyclerQuery (setupRecycler(): Model), CustomRecyclerRestore (recyclerRestore(int $id): bool) and CustomRecyclerPurge (recyclerPurge(int $id): bool). Methods with those names on a model that does not implement the interface are no longer called. Without a custom hook, the Recycler now uses the model's own primary key and soft delete field instead of assuming id and deleted_at, and refuses to restore or purge a record that is not in the Recycler.

Modules now register their recyclable resources with service('recycler')->register() from initAdmin(), instead of editing Config\Recycler::$resources. The Users module registers users this way, so $resources is empty by default; entries you already have in your own Config\Recycler keep working and take precedence over a module's. If you publish the Recycler listResource view, it now receives RecyclableResource objects as $resources and $currentResource (use ->label(), ->columns(), ->localizedColumns(), ->alias()) and no longer receives $currentAlias.

The logs in the Tools area are now read and deleted through Bonfire\Tools\Libraries\LogStore, which only accepts file names like log-2024-01-31. Logs::getAdjacentLogFiles() moved to LogStore::neighbours() and Logs::paginateLogs() takes the page as its third argument instead of reading $_GET. If you publish the logs list view, each log now has a name (without extension) instead of a filename.

Fixes: viewing and deleting logs now requires the logs.view and logs.manage permissions; before, any user with admin.access could read and delete the logs by calling the URLs directly. "Delete all" now removes only the log files. The levels count in the logs list counts entries instead of every occurrence of a level's name in a message.

View Components now render self-closing (<x-foo />) and paired (<x-foo>…</x-foo>) tags through the same code, so the two forms no longer differ by accident. Two behaviours change:

  • A self-closing tag now passes its attributes to a component class, as the docs always said. Before, <x-foo attr="bar" /> lost attr whenever a FooComponent class existed, so the class' $this->data was empty. If your class worked around that, it now receives the attributes.
  • A tag whose view can't be found now always throws a RuntimeException (View not found for component: foo). Before, a paired tag with a missing view (or any error while rendering one) was swallowed and the raw <x-foo> tag stayed in the page. A regex failure while rendering components also throws now, instead of returning a number as the page.

What a component view sees (the attributes as variables, $slot), the lookup order (theme first, then componentsLookupPaths) and the Components/<name>.php + <Name>Component.php convention are unchanged.

8 October 2026 (breaking change)

Everything about whether a dashboard widget is enabled, and what its display options are, now has one owner in Bonfire\Widgets: ItemSettings (the enabled flag of an item), DashboardContext (are we on the dashboard, and does this item show) and WidgetOptions (the options of the Stats widget and of each chart type). The settings keys stored in your database are unchanged.

If you publish your own copy of the dashboard cell views (Cells/stats.php, Cells/charts.php, Cells/scripts.php) or the widgets settings.php view, note that they no longer receive $manager from Manager::manager(), which has been replaced by Manager::items(). Ask each item for $item->settings()->enabled() instead.

Widget items now also report an item's settings through settings(), which is part of the Item interface. If you wrote your own item class implementing Bonfire\Widgets\Interfaces\Item, add settings(): ItemSettings to it. The protected $dashboardRoute property of StatsItem and ChartsItem is gone. StatsItem::addValue(), addValueByFreeQuery() and ChartsItem::addDataset() still only run their query on the dashboard when the item is enabled, and the check can now be swapped in tests through service('dashboardContext').

Items in a second collection of a widget now show up on the widgets settings page and on the dashboard.

8 October 2026

The rules for who may edit, ban, delete or assign groups and permissions to whom in the Users admin now live in one place (Bonfire\Users\Libraries\UserAccess), and the views and the controller both use it. If you have published your own copy of the Users views form.php, permissions.php or _table.php, they now receive an $access variable (a UserAccess instance) instead of working out these rules themselves. Avatar storage moved to AvatarStorage.

Fixes: purging several users at once now removes the avatar and meta info of every purged user, not only the first. A user with users.edit but without me.edit can no longer ban themselves.

18 March 2025 (breaking change)

The way widgets are enabled has changed in the database, so if you had widgets enabled before, they will all be disabled. To clear the database of the orphaned data about enabled widgets run this in your DB:

DELETE FROM `settings`
WHERE `class` = 'Bonfire\Widgets\Config\Stats' AND `key` LIKE 'Stats_%';
DELETE FROM `settings`
WHERE `class` = 'Bonfire\Widgets\Config\Stats' AND `key` LIKE 'Charts_%';

26 February 2025 (breaking change)

Finished implementation of <x-button> component in the Admin theme. Users need to update the Admin theme (updated the component definition).

19 January 2025

Resource Meta Info (if you have configured such) can now be included in the Admin area search (see docs page Search for details).

18 January 2025 (breaking change)

Possibility to have Second Factor Authentication is added to Bonfire2, implementing Codeigniter Shield feature.

To use the feature on existing installs you will first need to update the userspace Config file app/Config/Auth.php, in particular – the property $views, two keys relating to 2FA to look like this:

    'action_email_2fa'        => '\Bonfire\Views\Auth\email_2fa_show',
    'action_email_2fa_verify' => '\Bonfire\Views\Auth\email_2fa_verify',

Failing to do that and enabling 2FA in the admin area will lock the users out of your website.

To fix it, after modifying the config file, issue this command on your database to clean up references to wrong classes:

DELETE FROM settings WHERE class="Config\Auth" AND key="actions";

16 January 2025

Bonfire can henceforth warn you about breaking changes (like need to update Admin/Auth themes, change config files, etc).

To get such notifications when updating Bonfire, you can add a command to your composer.json scripts section:

    "scripts": {
        "post-update-cmd": [
            "php spark notify:breaking-changes"
        ]
    }

New Bonfire install will automatically include this command.

18 March 2024 (breaking change)

<x-button> and <x-button-container> view components implemented.

When updating, copy files themes/Admin/Components/button-container.php and themes/Admin/Components/button.php into the corresponding folder of your project's Admin theme. See #434 for details about the change.