Getting started
Upgrade guide
The API and behaviour changes of every Lathe release since the one before it, taken from the changelog.
This page is generated from the changelog. Its API changes are the entries marked [api], which change the public API: the classes and methods in the API snapshot, the artisan commands, the config keys, the route names and the JSON contract. Its behaviour changes are the other entries under Changed, which change what the panel does for your users.
It covers every release, newest first: each section holds the changes between a release and the one before it. Going up several releases, read each section from the release you run to the newest. Check each API change against your code before you update, and tell your users about the behaviour changes.
From 1.0.0-beta.15 to 1.0.0-beta.16
API changes
- The
Iconenum has eight more cases,ArrowDownRight,ArrowUpRight,ChevronDown,ChevronsUpDown,Ellipsis,Pencil,RowsandX, and the panel's icon set draws them, so<Icon name="chevron-down" />no longer falls back to a circle. - A custom widget's component draws only its body: the panel draws the card, the widget's name, its menu and its range around every widget, a custom one too, as it did in 1.0.0-beta.15. A widget written from the 1.0.0-beta.15 stub, which drew its own
<Card className="p-6">and an<h3>ofwidget.name, shows a card inside the card and its name twice; return only the body. - A page, plugin or resource-plugin component written from an earlier stub, with
<Card className="p-6">and a hand-styled heading, still draws as before in every style, since the kitCardof@lathephp/uidid not change and its own padding wins over the style's. To take the active style's card spacing and title, as generated components now do, wrap the heading inCardHeaderwithCardTitle(andCardDescription), the body inCardContent, and drop the padding. @lathephp/coreexportsPageHeaderandIcon, which draw the panel's own parts in a plugin.<PageHeader title description actions />is a panel page's title row: the title in the panel's page-title style, the description muted under it, the actions on the right, and on a phone the title in the top bar.<Icon name className />draws a Lucide icon by its Lucide name (shopping-cart) or its PHPIconcase (ShoppingCart) from the panel's icon set,size-4unlessclassNamesays otherwise; an empty box of that size holds its place while the set loads, and an unknown name draws a circle. Both render only inside the panel, as the other lent components do.- The panel's first-paint
Buttontakes every variant and size of the kitButtonof@lathephp/ui: the variantsdefault,outline,secondary,ghost,destructive,destructive-solidandlink, and the sizesdefault,xs,sm,lg,icon,icon-xs,icon-smandicon-lg. It draws with the active style'scn-button,cn-button-variant-<variant>andcn-button-size-<size>classes, so a panel served in luma has pill buttons and one in lyra square ones, and the newbuttonClass(variant, size)gives a link the same classes. The panel stylesheet'slathe-button-default,lathe-button-outline,lathe-button-ghost,lathe-button-destructive,lathe-button-destructive-solidandlathe-button-size-*look rules are gone, andlathe-buttonkeeps only the button's layout; a page that used those classes usescn-button-variant-<variant>andcn-button-size-<size>withcn-button. - Every button and button-like link of the panel draws with the panel
ButtonorbuttonClass(), so it takes the active style's look: the record page's Delete and Force Delete are thedestructivevariant, the confirm of a delete, a repeater's Remove and a destructive action's run button aredestructive-solid, and a conflict's Override isdestructive. TheoutlineButtonandprimaryButtonclass strings of the panel'sModalmodule are gone. - The panel's text inputs and textareas draw with the active style's
cn-inputandcn-textareaclasses, from the newinputClassandtextareaClassof the panel'scomponents/ui/inputmodule: a Resource form's fields, the sign-in, password reset and two-factor pages, the security page, the filter inputs and the password and re-authentication dialogs. The panel stylesheet'slathe-inputkeeps only an input's layout, so its border, corners, height and focus ring are the style's, and under nova a phone form's inputs stay 44 px tall with 16 px text, as its selects are.fields/number/inputClass,inputClassoffields/choice/options,fieldClassof the filters,authInputClassofAuthLayoutandmodalInputofModalare gone. - The panel's first-paint
Badgetakes avariant(default,secondary,outline,destructive,success,warningorinfo) in place oftone, and draws with the active style'scn-badgeandcn-badge-variant-<variant>classes. The newtoneVariantsmap turns the tone names a select'sbadges()and a menu or view badge send into a variant:neutralissecondary,primaryisdefaultanddangerisdestructive. The sidebar's nav count and a view's count in the views rail render thatBadge: a nav count of the defaultinfotype reads neutral, and the current page's count sits on the card ground in theoutlinevariant. The panel stylesheet's badge look rules are gone: the colours of.lathe-nav-badgeand.lathe-tab-count, and thedata-lathe-badge-toneanddata-badge-typeattributes they selected on. - The panel's first-paint
Carddraws with the active style'scn-cardclass and carriesdata-slot="card", and it now exports the kit's partsCardHeader,CardTitle,CardDescription,CardAction,CardContentandCardFooter, each with itsdata-slotandcn-card-*class. Under nova a card has the kit's ring in place of a border and no shadow. The panel stylesheet's[data-lathe-card]look rules, the 12 px radius and the flat phone card with!important, are gone; a resource index's table card goes flat below 768 px through its ownmax-md:utilities. - A form field's label draws with the active style's
cn-labelclass, and its error message withcn-field-erroras an alert, through the panel'sFieldError, which takes an optionalicon. The sign-in, password and two-factor pages' errors take the same look and are alerts too. - The panel's
Modaldraws with the active style'scn-dialog-contentlook, and its module exports the partsModalHeader,ModalTitle,ModalDescriptionandModalFooter, with thecn-dialog-header,cn-dialog-title,cn-dialog-descriptionandcn-dialog-footerclasses.ModalCloseis a ghosticon-smButton withcn-dialog-close. Every panel dialog draws its title, description and footer with these parts, so on a phone every dialog is a bottom sheet with its buttons stacked 44 px tall and the primary on top. AclassNamepassed toModalnow adds to the surface instead of replacing it. ThemodalPanel,modalSurfaceandmodalFooterclass strings are gone; the phone sheet is the stylesheet's[data-lathe-modal]rule. - The modal an action's
modal(component, data)result opens is named by the action's name, so a screen reader announces "Summarise orders" rather than the component idsummary-modal. The panel'sResponseModaltakes the name as a new requiredtitleprop. @lathephp/ui/comboboxexportsComboboxClear, the clear button, which has the accessible name "Clear" and takes alabelprop to change it, such aslabel="Remove all".- The kit's
DropdownMenuContenttakes acollisionPadding, the space it keeps from the edges of the box it stays inside, and acollisionBoundary, that box when it is not the window. - The kit's
ChartTooltipContenttakes aclassName, and its box takes its border, corners, padding and shadow from the style'scn-chart-tooltip. - A boolean field's switch and checkbox, and a boolean group's boxes, draw with the active style's
cn-switchandcn-checkboxand carry the kit'sdata-slot,data-checked,data-uncheckedanddata-indeterminateattributes, through the panel's new first-paintSwitchandCheckboxincomponents/ui, which stay out of the kit's code. The checkbox is arole="checkbox"button rather than a native input; a nullable boolean with no value reads as mixed. - The panel's first-paint controls are the panel
Buttonor copies of kit parts incomponents/ui: the newInputandTextareaofcomponents/ui/input(withdata-slot="input"and"textarea"),TabsTriggerofcomponents/ui/TabStrip(the module moved there fromcomponents/TabStrip),DropdownMenuTriggerandDropdownMenuItemofcomponents/ui/DropdownMenu, andCollapsibleTriggerofcomponents/ui/Button. A toast's action and Dismiss, a text field's Copy, a value card's Copy, the phone sidebar's Close menu, a table's sort headers and Columns and row menu buttons, a filter chip's remove, a tag chip, the views rail's rows and Save view, and a widget's and saved view's ⋯ menus now draw as the style's buttons; the top bar's search, the sort headers and the views rail keep their layout through theirlathe-*hooks. @lathephp/vite-plugin/eslintexports thelathe/no-raw-uirule as a flat-config array:import lathe from '@lathephp/vite-plugin/eslint'and...lathein an app'seslint.configturns the rule on as an error forresources/js/lathe/**/*.tsx. It sets no parser, so the app's own config still parses TSX.
Behaviour changes
- The style tags
@lathephp/uiinjects carry the page's CSP nonce, so the panel's nonce Content Security Policy lets them apply:CodeEditorof@lathephp/ui/code-editorgives it to CodeMirror and draws in its monospace font with its gutter, where a plugin's editor was unstyled, andScrollAreaandSelectContentgive it to Base UI's scrollbar-hiding style, which logged a CSP violation on every page with a scroll area. - The extension docs and the
lathe-developmentskill teach what the generators write: kit-built fields, pages, plugins and widget bodies, a Styling section with the CSS setup and the lint rule, the kit's own chart API, and a five-second toast in place of four. Every place that teaches a custom React filter,filter()or->modalSize()is marked deprecated, and the custom filter key example ends in-filter. - The
lathe-developmentBoost skill has a UI page,ui.md, linked fromSKILL.mdandcustom-extensions.md: the rule against hand-built controls, theme tokens in place of palette colours, card, dialog and field composition, Base UI'srenderprop,PageHeaderandIcon, the Styling setup, the raw-UI lint rule, the kit's chart withvar(--chart-N)colours, and every export of@lathephp/uiwith its import path. The skill now also triggers on React underresources/js/lathe/. - The first React component a generator writes (
lathe:page,lathe:field --custom,lathe:widget --type=custom,lathe:plugin --inlineand the others that set up resources/js/lathe) prints the two lines that add the kit's raw-UI lint rule to the app'seslint.config.js:import lathe from '@lathephp/vite-plugin/eslint';and...lathein the config array. The scaffold never edits that file, and the lines print once. - The React generators write kit-built components with
@lathephp/core's prop types:lathe:pageaPageHeaderand aCardwithCardHeader,CardTitle,CardDescriptionandCardContent;lathe:plugin,lathe:resource-pluginand a plugin package's page the same card parts;lathe:filter --customthe kitInputand a ClearButton; andlathe:widget --type=customonly the widget's body, since the panel draws its card and name. A page generated withPageHeaderneeds@lathephp/core1.0.0-beta.16 or later in the app's package.json for its types; the panel serves its own core at run time. lathe:field --customandlathe:filter --customgenerate a component drawn with the kit'sInputfrom@lathephp/ui(and the filter's label withFieldandFieldLabelfrom@lathephp/ui/field) in place of a hand-styled<input>, so a generated field or filter takes the active style's look and passes the raw-UI lint rule.- The toasts the panel draws when the toast chunk of an old build is gone after a deploy look like its other toasts: the popover card with the style's
cn-toastcorners and 16 px padding, an error no longer in red text, and above an open dialog, where they sat under its scrim. - The keyboard shortcuts sheet draws each key with the active style's
cn-kbdlook, as the kitKbddoes, and each group heading with the style'scn-dialog-title. - The Rename view, Save view and Delete view dialogs open on the panel's
Modal: they trap the focus and close on Escape as every other dialog does, take the style's dialog, input and label look, and stack their buttons on a phone. Delete's confirm is the solid destructive button, and Cancel still has the focus. - A lazy part of the panel, such as a menu or a dialog, no longer lists among the files it preloads the chunks its page has already loaded, so a page's first-load JavaScript is about 2 KB smaller: Orders is 198 KB gzip, where it was 200 KB.
- A table row's View, Edit and menu buttons, the Columns button, a board card's Move button and a repeater row's tools draw as the style's small ghost icon buttons; the panel stylesheet's
lathe-row-buttonlook rule is gone. - A table row's menu, a record page's Actions menu, an index's Actions and Delete menus, a relation panel's pivot Actions menu, a Board card's Move menu and a dashboard card's size menu in Customize mode are the kit
DropdownMenu: the arrow keys, Home and End move between its actions, typing a letter focuses the action whose name starts with it, and Escape closes it with the focus back on Actions. It draws on the page's body, above the sidebar, and stays 8 px inside the window; a record page's Actions menu, also exported to plugins asActionDropdown, stays 8 px inside the content beside the sidebar. It is no longer cut by the preview panel or slid under the sidebar. The size menu marks the card's size as a checked radio item. A row menu opens above its button when the window ends below it, still closes when the page scrolls, and lists the row's inline actions as its own entries. - The user menu, a saved view's options menu in the views rail and a dashboard card's ⋯ menu move and look like the kit's menus while staying out of the kit's code on first paint: they open on their first item, the arrow keys wrap, Home and End go to the ends, a typed letter focuses the item it starts, the item under the pointer lights up, Escape closes them with the focus back on their button, and Tab or a press outside closes them. A dialog an item opens, such as Rename view, gives the focus back to the menu's button when it closes, or to Views when it opened from the Views popover. A letter typed in any panel menu no longer reaches a page shortcut such as C for Create. They draw with the style's
cn-dropdown-menu-contentandcn-dropdown-menu-item; the panel stylesheet'slathe-user-menuandlathe-menu-rowrules are gone. - A record's relation tabs and its field tab groups move with the keyboard as kit
Tabsdo: only the open tab is in the Tab order, the arrow keys open the next or previous tab (the other way under right to left, and up and down in a vertical group), and Home and End open the first and last. A tab opened from the keyboard writes its query key to the URL as a click does. Both draw as the kit's line tabs with the style'scn-tabs-listandcn-tabs-trigger; a vertical group is a scrolling row below 768 px, as before. - The Orders Table/Board switch and the dashboard's range picker draw as the active style's segmented toggle group, with
cn-toggle-groupandcn-toggle-group-item, through the panel's new first-paintToggleGroupandToggleGroupItemincomponents/ui. Each choice is a toggle button witharia-pressed; the range picker is no longer a radio group, so the arrow keys move the focus between ranges and Enter or Space picks one, as with the kit's toggle group. - A relation field's picker, such as an order's Customer, is the kit combobox: an input with the
comboboxrole whose list opens on the page's body, matches as the server searches (an email-only match stays listed), takes ArrowDown and Enter to pick, and Escape to close with the old value kept. Its With trashed box is the kit checkbox, in the picker and in the short-list select. A searchable relation filter's options are the kit combobox too, listed inline in the filter panel as options. - The boxes of a multi-select or boolean filter and of the Columns picker are the kit checkbox, and the Save view dialog's badge colours are the kit radio group and its Show count the kit switch, each drawn by the active style.
- The notification panel and a relation value's peek card draw as the active style's popover (
cn-popover-content), the search palette as its dialog (cn-dialog-content), and the widget help and a collapsed nav item's tooltip as its tooltip (cn-tooltip-content). Their corners and shadows are the style's; the panel stylesheet stacks them. The peek card is no longer announced as a tooltip. - An index search with no match, an index with no records, an empty relation panel, an empty notification panel, a search with no results in the palette and a dashboard with no widgets, or with every widget hidden, draw the active style's empty state (
cn-empty); an empty relation panel with filters on offers Clear filters, and a widget with no data says so in the style's empty description. Every loading placeholder draws the style'scn-skeleton, with the style's corners. The panel stylesheet'slathe-emptyandlathe-empty-titlelook rules are gone, with the round icon badge they drew and itsdata-tone="primary"colour; a page that styled them styles the style'scn-empty,cn-empty-media,cn-empty-titleandcn-empty-description. - The sign-in, password, two-factor and security pages, the password and re-authentication dialogs, the notification panel's buttons, the appearance choices, the impersonation banner's Stop and the search palette's Cancel and Clear draw with the panel's
InputandButton, and the sign-in page's Remember me is the kit checkbox. The two-factor QR code sits on the newqr-groundtheme colour, and a radial chart's labels on the newchart-label, both white in every theme, so a scanner reads the code and a label reads on its bar in dark mode. - A relation panel's table draws its headers and rows with the index's own parts: the same sort buttons with both arrows, and the panel's density and stripes. A sort clicked while the filter bar is still sending a chip keeps both.
- The form fields' own controls draw with the kit or the panel's parts: the key-value, repeater, slug, token, date text, tag and select inputs and their buttons, the Markdown and code editors' text areas, and a file field's Remove. A tag field's preset tags are the kit toggle.
- The panel's ESLint config turns on the new
lathe/no-raw-uirule (packages/vite-plugin/eslint/no-raw-ui.js) forresources/js, outsidecomponents/uiand the tests: a raw<button>,<input>(but a hidden one),<select>or<textarea>, or a raw palette colour such asbg-gray-100,text-whiteortext-[#ff0000]in a class string, is an error. An exception carrieseslint-disable-next-line lathe/no-raw-ui -- <reason>, and a Quality test fails one with no reason. - A relation panel's Create link, a notification's button-style action and the error page's Back to dashboard draw as the active style's buttons.
- On a phone the dashboard's range choices are each at least as wide as their label, so they never run into each other; a strip wider than the screen scrolls under its edge fades.
- Clear filters in an empty, filtered relation panel keeps the panel's sort, as the index's does.
From 1.0.0-beta.14 to 1.0.0-beta.15
API changes
@lathephp/ui/toastdraws a toast like shadcn's Base UI toast:Toastis the card, with the style'scn-toastcorners and no padding of its own, the newToastContentis its 16 px padded row, the newToastTitleshows a toast'stitlein medium weight, andToastDescriptionshows itsdescriptionin the muted colour. A plugin that putToastDescriptionstraight insideToastwraps it inToastContentand, for the main line, usesToastTitlewith the toast'stitle.- Toasts stack like shadcn's Base UI toast: the newest is in front and up to two older ones peek 12 px above it, each 10% smaller with its content hidden, until a hover, a tap or the keyboard focus fans the stack out 12 px apart. A toast swipes away, except a running task's, which has no Dismiss either, and the stack spans a phone's width 16 px from each side. The "N more" count under the stack is gone; a fourth toast waits behind the three as before.
ToastViewportandToastof@lathephp/ui/toastcarry the stack, so a plugin's own toasts stack the same way.
Behaviour changes
- The panel's toasts take the style's corners, 16 px padding and a 16 px outline icon for their kind, red only for an error. The message is the title and a toast's body sits under it in the muted colour, and Undo and the close button are the kit's outline and ghost buttons.
From 1.0.0-beta.12 to 1.0.0-beta.14
API changes
ExecuteAction::failed()andDeleteChunk::failed()count a chunk's rows as failed once the queue gives up on it, andPlanBulkRun::failed()ends the run failed.PlanBulkRunandDeleteChunkset$tries = 1.JobContext::isolate(Closure)runs a callback and then puts back the user on the context's guard, the default guard and the locale. TheIsolatesJobContexttrait gives a job that middleware;PlanBulkRun,ExecuteAction,DeleteChunk,ProcessImportandProcessExportuse it.JobContextcarries the starting request's$ipand$userAgent, two last optional constructor arguments, andJobContext::server()gives them as the server values of a job's own request.RunStandaloneActionis the job of a queued standalone action, andActionDispatcher::runQueuedStandalone()runs it in the worker.ActionDispatchergains the protectedqueueStandalone(),dispatchRun()andrunStandaloneHandler().- Three English strings are new, for an app that translates the panel; none was renamed or removed:
Security settings are not available while impersonating., the answer of the password and two-factor routes while an admin impersonates someone,This import has already started., the answer of an import step sent again, andYou may not list these records., what a relation picker and a relation filter in the filter bar say to a user who may not list the related records. Timezone::storage()names the zone a datetime column holds wall time in, the app's, andTimezone::stored()writes a moment as that text.DateBucket::zoned()andDateBucket::offset()take that zone as a last$storageargument,'UTC'by default.AggregateQuery's protectedutc()is nowstored().RowCastertakes the import's model as a second, optional constructor argument, and its protectedtoDate()a third,$day.request()of@lathephp/coresends aFormDatabody as it is, multipart, with no JSON content type, and sends the same body again after a password check.@lathephp/coretakes React^19.3.0as its peer, as@lathephp/uidoes, where it asked for exactly 19.3.0, so an app or plugin on a later React 19 installs both packages with no peer warning.Filter::placement()andFilter::immediate()are deprecated and stay in 1.x: each still returns the filter and still sets theplacementorimmediatekey of its JSON, but the filter bar reads neither. Only@lathephp/core's deprecatedFilterMenureadsimmediate(), and nothing readsplacement().lathe:filter --customis deprecated and stays in 1.x: it still writes the filter class and its React component, and then says the option is deprecated, since the filter bar shows such a filter as a text key, not with its component.FilterMenuandfilter()of@lathephp/coreare deprecated and stay in 1.x: a custom page that rendersFilterMenustill draws a component registered withfilter(), as in 1.0.0-beta.12, while the filter bar of a Resource's list, a lens and a relation list shows such a filter as a text key. Both carry@deprecatedin their types, so an editor strikes them through and@typescript-eslint/no-deprecatednames each call.lathe:doctorstill checks that a filter's component key is registered.
Behaviour changes
- A relation picker and a relation filter's options answer 403 to a user who fails
viewAnyon the related Resource or whom itscanSee()hides, where they listed its records: the picker of a belongsTo, morphTo, belongsToMany or tag field on a create or edit form, in an action's form and in a relation list's Attach dialog, the picker of a belongsTo or morphTo cell that edits inline on a Resource's list, a lens and a relation list, and a relation filter in the filter bar of a Resource's list, a lens and a relation list. For such a user a relation filter never lists the related records inline in the filter definition, even over a small table, and its chip names only a record they mayview. The picker and the filter bar then say "You may not list these records." with no toast, and a tag field preloads its options only for a user who may list them. A picker still shows a saved value the user mayview, so an edit form keeps it. A user who could pick records they may not list loses that picker; to keep it, give themviewAnyon the related Resource. A hand-written filter whosesearchOptions()reads another Resource's table must check the same itself. - In
lathe/permission1.0.0-beta.13, released from this repository besidelathe/lathe, the permission plugin's role and permission fields show only to a user who passesviewAnyon the Role or Permission Resource the plugin registered: for anyone elseRoleSelectField,RoleMultiSelectFieldandPermissionMultiSelectFieldare left off the form, a posted value is ignored, and the panel answers their picker with 403, where a user who could edit users could grant any role or permission by its name. - A belongsToMany field's pivot values meet their fields' rules on every write: a form checks each posted row under
{attribute}_pivot.{id}.{column}, and the form, Attach and Edit pivot fill only the pivot fields the user can see that are neither readonly nor computed, where the form stored posted pivot values with no rule and wrote readonly and hidden pivot fields. A form that posts ids with no pivot row keeps each row's stored values. Detach and Edit pivot find the record in the related Resource's relatable scope, trashed records included, and answer 404 outside it. - An import's
upsertBy()andskipDuplicates()keys match only the rows the Resource'seditQuery()lets the user edit, so a key held by a row outside that scope counts as new: the row is created, or fails if the column is unique. Arelationship()column matches only the records the related Resource'srelatableQuery()offers. - Dashboards read a datetime column as wall time in the app's time zone, as forms and Laravel's own timestamps store it, so an app that does not run on UTC counts a record on the day and in the hour it was stored: an order placed at 23:30 on Nov 11 on an Asia/Dhaka app counts for Nov 11 in a value card and in a trend, for a user in Dhaka. The user's time zone still decides where a day starts. An app on UTC reads as before.
- A day group's subtotal, a date filter that cuts its days with
Timezone::dayBounds()and a dashboard card's Open records link cut the same days as the dashboard on an app that does not run on UTC:dayBounds()gives a day's bounds in the app's time zone, where it gave them in UTC, so a query binds them as the column holds them. On an Asia/Dhaka app, Orders grouped by Placed day totals an order placed at 23:30 on Nov 11 under Nov 11, and the Placed filter for Nov 11 lists it. - An import's
date()column stores a datetime in the app's time zone, as a form does, where it stored UTC wall time; on an app that runs on UTC nothing changes, and on any other app the rows an earlier import stored are not converted, so they keep the UTC wall time it wrote. A column the model casts todatekeeps the cell's calendar day:2026-03-08imported by a user in Asia/Tokyo stores March 8, where it stored March 7. A day group reads adate:cast with a format as a calendar day too. - An export prints a column the model casts to
dateas its calendar day,2026-03-08, where it printed midnight moved into the user's time zone,2026-03-07 16:00:00for a user in America/Los_Angeles. A datetime column still printsY-m-d H:i:sin the user's time zone, so a file exported and imported again by the same user leaves both unchanged. - While an admin impersonates someone, the password change and every two-factor route of the Security page (turning two-factor on, confirming it, turning it off, its QR code, secret key and recovery codes) answer 403, so an impersonation never reads or changes the target's account security, and the Security page says so in place of its cards. Starting and stopping an impersonation forget the password confirmation, so the next action that asks for the password asks again, as the target and then as the admin.
- A form's unsent draft keeps no password field, and a reload restores the other fields with the password empty. The drafts and the palette's recent searches a browser keeps belong to the user who made them: signing out, signing in as someone else, and starting or stopping an impersonation clear them, across a reload too.
- Confirming the password and changing it on the Security page take 5 tries a minute per user, as the two-factor challenge does; the 6th answers 429.
- A standalone action that implements
ShouldQueuequeues, as any otherShouldQueueaction does: the request answers with a queued run of one, the progress toast follows it, and the worker runshandle()once under one action event, which reads Finished or Failed. It ran inside the request. - An import step sent again for an import that is waiting, running, imported or failed answers 422 "This import has already started." and leaves its counts as they were, where it ran the file a second time; a failed import still resumes from its run page, after its last saved chunk. Two resumes sent together queue the import once, and a step whose run could not be queued leaves the import as it was. A dry run can still be checked again and then imported.
From 1.0.0-beta.11 to 1.0.0-beta.12
API changes
- No public API changed since 1.0.0-beta.11: the classes and methods of the API snapshot, the artisan commands, the config keys and the route names are as they were, and the filters endpoint's JSON only gains each filter's
tokenandkind, as the list's filters already carry, so an app updates with nothing to change in its code. One English string is gone, for an app that translates the panel; none is new or renamed:Filters, the relation list's button that opened its filter panel, which the list's filter bar and its Filter button replace.
Behaviour changes
- A relation list on a record page searches and filters with the list's filter bar: one input for search and filters, a chip for each filter, and the Filter button with its count, in place of its search box and its Filters button and panel. Each relation tab keeps its own search and chips while the user stays on the page, so they stay while another tab is open and a reload clears them; the page URL never holds them, and a relation list has no saved views. A relation tab whose Resource has no filters and no search shows no filter bar. The
/key no longer focuses a relation list's search; it focuses the filter bar on a Resource's list and on a lens. - The filter bar's list of filters opens as a 320 px popover under the text cursor, so it follows the chips as they grow, and stays inside the bar when the cursor is near the bar's end, in a right-to-left panel too; it was as wide as the bar. On a phone it is the bottom sheet, as before. This holds on a Resource's list, on a lens and on a relation list.
- A group heading on a select field reads the option's label, as "Status: Pending", where it read the stored value, "Status: pending". A
titleUsing()closure, date groups, relation columns and fields with no options keep their headings, and the group's key stays the stored value. - When the server refuses an inline select's save, the editor comes back with its list closed and the cell's old value, so the message reads whole, where the open list covered it and the cell kept the refused value; Escape leaves the cell. A text or number cell keeps the refused draft to fix. This holds on a Resource's list, on a lens and on a relation list.
From 1.0.0-beta.10 to 1.0.0-beta.11
API changes
- No public API changed since 1.0.0-beta.10: the classes and methods of the API snapshot, the artisan commands, the config keys and the route names are as they were, and a list's JSON only gains
table.titleColumn, so an app updates with nothing to change in its code. Three English strings are new, for an app that translates the panel; none was renamed or removed:Filter(the list's Filter button),Change :field(the spoken name of a cell that edits inline, as "Status: Paid. Change status") andWaiting for a queue worker. Is one running?(the import wizard and a queued run's toast).
Behaviour changes
- The toolbar's Actions menu lists only standalone actions while no row is ticked, and shows no button when the Resource has none; ticking a row lists every action as before. This holds on a Resource's list, on a lens, on the Board, which ticks nothing, and in a relation list's pivot Actions menu. The Delete menu already showed only for ticked rows.
- On a list that edits inline, the view and edit links and the row menu at a row's end open on the first click. A link inside a data cell, such as a related record's name, still moves the cell cursor on the first click and opens on the second. This holds on a Resource's list, on a lens and on a relation list.
- A cell that edits inline shows a small chevron at its value's end, inside the badge or the meter of a select drawn as one, while the pointer is over the cell or the cell cursor is on it, on a Resource's list, on a lens and on a relation list. On a list and a lens a screen reader names the cell "Status: Paid. Change status". A read-only cell shows none.
- A lens page lists the Resource's tabs and the user's saved views in its views rail, before the lenses, with the lens marked current and the tab badges counted as on the list. A tab or a saved view chosen there opens the Resource's list.
- A lens's footer totals the lens's own fields that call
summarize(), and a lens with none of them draws no footer. The footer showed the Resource's skeleton and never filled. - A list or lens with filters shows a Filter button beside the filter bar. It opens the filter bar's list of filters, as a click in the bar does, and counts the active filters, as "Filter 2". A relation list keeps its Filters popover.
- From 1100 px the views rail of a list or a lens folds into the toolbar's Views menu whenever the table's columns would not fit beside it, so the columns read whole without scrolling sideways, as on Orders at 1280 px with the sidebar open; a list whose columns fit keeps the rail open.
- The cards of a dashboard, of a Resource's list, of a lens and of a record page read their values from the widget endpoints through the panel's query cache, which keeps a value fresh for 60 s: going back to a page within 60 s shows its cards at once with no request, and after 60 s shows the kept values while it fetches them again. Refresh, a range change, a run action and a filter change still fetch. A dashboard page no longer sends each card's value as a deferred prop, so it asks for them after it paints, one request per card. The exported
WidgetGridandWidgetCardread through the same cache, so the cards of a plugin's custom page do too. - A record page shows only the cards marked
onlyOnDetail(), as the widget docs describe; the other cards of the Resource show above its list and no longer repeat on each record.WidgetList::visible($request, true)returns only the detail-only cards, soGET .../widgets?resourceId=,useWidgetListwith aresourceIdand the testing kit'swidgets(['resourceId' => ...])list only them. A card meant for both places is listed above the list only; mark a cardonlyOnDetail()to keep it on the record page.
From 1.0.0-beta.9 to 1.0.0-beta.10
API changes
- No public API changed and no English string is new, renamed or removed since 1.0.0-beta.9, so an app updates with nothing to change in its code or its translations.
Behaviour changes
- The top bar's search shows as its icon button, as on a phone, whenever the top bar is narrower than about 760 px: in a window narrower than about 1,016 px with the sidebar open, or about 808 px with it collapsed. It showed the search box from 768 px up. Ctrl+K and ⌘K open search as before.
From 1.0.0-beta.7 to 1.0.0-beta.9
API changes
WidgetCardtakes its columns from the width of the nearest container, not the window's, so a custom page that puts cards in a grid of its own makes that grid a container (Tailwind's@container), asWidgetGriddoes; in a grid that is not one, every card keeps its phone layout at any width.- No English string is new, renamed or removed since 1.0.0-beta.7, so an app that translates the panel has nothing to add.
- A plugin can limit its settings to some of the users who may use it with
canSeeSettings(Closure $callback)orcanSeeSettingsWhen(string $ability, mixed $arguments = []). The rule gatesGETandPUTon the plugin's settings API, its settings page and the automatic Settings link, each answering403or leaving the link out for a user it refuses. It only narrowscanSee(): a usercanSee()denies is refused whatever the settings rule says, and without a settings rule a plugin's settings follow itsauthorize(), as before. A plugin with neither a settings rule norcanSee()orcanSeeWhen(), and noauthorize()of its own, lets every panel user read and change its settings. Amenu()list is kept as written, even an item named Settings, andlathe:pluginslists the plugin as an admin sees it.
Behaviour changes
- The cards of a dashboard, of a Resource's list and of its record page take their layout from the width of their grid, not the window's: beside the sidebar, from 768 px up to about 1,070 px the cards sit as on a phone, value and progress cards of a third or less two across and the rest across the row, where four quarter cards were squeezed to 101 px at 768 px and cut every title and number. A collapsed sidebar gets the 12 columns sooner.
From 1.0.0-beta.6 to 1.0.0-beta.7
API changes
- New English strings since 1.0.0-beta.6, for an app that translates the panel; none was renamed or removed:
Waiting,Running,FinishedandFailed(the Action Events list's Action Status filter),:action: changed :fields(a History entry of an action run, as "Cancel order: changed Status") andThis record is attached more than once.(Edit pivot or Detach on a record attached twice to a pivot table with no id column). - A value card's number range counts calendar days in the user's time zone, today and the N - 1 days before it, compared with the N calendar days before those, so its total matches a trend card's for the same range. It counted the last N times 24 hours back from now, so at 7 days an order placed late on the eighth day ago counted in the card and not in the trend.
TODAY,YESTERDAY,THIS_WEEK,MTD,QTD,YTDandALLkeep their windows, andAggregateQuery::value()is unchanged. - A date filter can name the column it narrows with
DateFilter::column(), null by default. When it names one, the Open records link of a dashboard card dated by that column opens the list with the filter set from the card's first day to its last,filter[key][from]andfilter[key][to], so the list holds the rows the card counted. This works for a value card with a number range and a trend by days, weeks or months; a trend by minutes or hours, a named range such asMTD, a card dated by another column and a card with its ownlink()keep their links. - A range filter takes strict sides,
filter[key][gt]andfilter[key][lt], compared with>and<;minandmaxstay inclusive, so an existing link or saved view keeps its meaning. A filterfilterable()generates applies them on the column as stored, so a cents column comparesgt=150000with 150000 cents.RangeFilter::normalize()returnsgtandltbesideminandmaxonly when the request sends them, and only for a filter whose$strictproperty is true: a filterfilterable()generates sets it, unless it has afilterable(fn ...)callback, which keeps receivingminandmaxonly. ARangeFiltersubclass takes them once it setsprotected bool $strict = trueand reads them inapply(); until then it answers 422 togtorlt, and the filter bar writes its>nand<nasminandmax, chips "≥" and "≤" as before. Each range filter's definition infilters.availablecarriesstrict. - A value card that averages, or takes the minimum or maximum, says "No earlier data to compare with." when the days before its range hold no rows, as a count or a sum card does; Average order at 12 months showed no line. The
previousof such a card's response is 0 where it was null. A card atALLstill has a nullprevious, andAggregateQuery::value()andvalueBetween()still return null for an average of no rows. - An action run's events show the values the action changed on each record under Original and Changes, where both were always empty. The records are read again once per 200 after the run; the update timestamp, hidden attributes and password or token attributes are left out, and a record the action did not change keeps both empty. A record's History card names the fields such a run changed, as "Cancel order: changed Status": the
titleof anaction-ranentry fromGET .../history/latestis that text where it was the action's name. - An action whose
handle()returnsActionResult::danger(), inline, standalone or in a queued chunk, leaves its action events Failed, with the message under Exception, where they read Finished: thestatusof thoselathe_action_eventsrows isfailedand theirexceptionthe message. The response is unchanged: HTTP 200 with the danger toast, and the row counts as run, not failed. - A
belongsToManyormorphToManyfield withwithCount()shows the related count in its index column, loaded in one query for the page; the column was empty.BelongsToManyField::resolve()returns that count as an int when the record carries<relation>_count, and the cell'svalueis the count where it was null. - Edit pivot, its form and Detach work on a
belongsToManyormorphToManywhose pivot table has no id column, where they answered 404. A relation panel's row carriespivot_idonly when the pivot table has an id column; the server finds a row of a pivot table with none by its related key and ignores anypivot_id, and a record attached to it twice answers 422 onrelated_idwith "This record is attached more than once." and changes nothing.
Behaviour changes
- In the filter bar,
total:>1500andtotal:<1500leave out an order of exactly 1,500, and their chips read "Total: > 1,500" and "Total: < 1,500";total:1000..1500and a baretotal:1500still include their ends. A date filter's>and<still include the date. - On a dashboard, a card with no
ranges()of its own receives the header's range as$request->query('range'), so a bar, partition, pie or progress card that reads it follows the picker; it received no range and showed whatever its code fell back to, with nothing on the card to say so. A card withranges()is unchanged.
From 1.0.0-beta.5 to 1.0.0-beta.6
API changes
- The panel home (
/lathe) sends a user who may not see the main dashboard to the first dashboard they may see, else to the first sidebar page they may open, and answers 403 only when they may open nothing. Sign-in, the brand link and starting or stopping an impersonation land there too.DashboardController::__invoke()returnsResponse|RedirectResponse. - Export and import download links are relative signed URLs checked with
signed:relative, so a link the queue worker built works at whatever address the panel is opened on, not only atAPP_URL.Export::downloadUrl(),Import::errorsUrl(), thedownload_urlofGET .../api/exports/{export}and theerrors_urlofGET .../api/imports/{import}return a path with no host, and so does theurlof the Download button in theExportReadynotification and of Download failed rows inImportComplete. A channel added withLathe::notificationChannels()that sends them outside the panel, such as mail or Slack, puts its own host in front withurl(). A link signed as absolute for these routes, including one issued before the upgrade, is refused; the next status poll or a new export gives a fresh one.
Behaviour changes
- In a
dependsOn()callback,FormData::get()returns abelongsTofield's key, not the picker's{value, display}array, soProduct::find($formData->get('product'))finds the record. A callback that read['value']reads the key directly. - Value and trend cards offer the dashboard's ranges by default, 7 days, 30 days and 12 months (they were 30, 60 and 365 days, and 30, 60 and 90 days), and still start at 30 days, so a dashboard set to 7 days or 12 months no longer shows "Last 30 days" on its cards. A card with its own
ranges()is unchanged. TrendResult::transform()changes the trend's points and series as well as its headline, so->transform(fn ($cents) => $cents / 100)plots dollars.- Extension CSS built through the Lathe Vite plugin imports Tailwind's theme as a reference:
@import "tailwindcss"defines no:rootvariable that could override the panel's (an app extension turned the panel's Archivo into the system font), and with nosource()of its own it scans the extension's folder: in an app the boot file's folder (resources/js/lathe), not the whole app, and in a plugin its whole folder.@lathephp/core/tokens.cssis a reference theme too. Hand-written CSS in an extension that read one of Tailwind's default variables, such asvar(--color-red-500), must define it. Field::heading()andField::hidden()are compact, so a form draws no label row and no Optional mark for them.- An action's
->icon('mail'), a kebab-case Lucide name, draws the same icon as->icon('Mail').Field::icon()and a badge'swithIcons()given a name the field icon set does not draw log one browser console warning that names it; the fields docs list the 27 names the set draws. - A column's
indexWidth()holds: its header and cells are that wide at least and at most, where the cells' 320 px cap could widen it before. - A list with no inline-editable cell, such as Action Events, follows a link in a cell, such as a related record's name, on the first click and still moves the cell cursor there. A list that edits inline keeps the beta.5 rule: the first click moves the cursor and the link opens once its cell holds it.
- The trashed-only view of a soft-deleting list (
trashed:only) draws no Soft Deleted badge, since every row in it is deleted; a view that mixes live and deleted rows keeps it. - An inline save, a Board move included, drops the saving user's cached sidebar badge of that Resource, so a badge such as a count of pending orders shows the change on the next read instead of after its TTL.
From 1.0.0-beta.4 to 1.0.0-beta.5
API changes
-
Each filter in the index payload's
filters.availablecarriestoken, its key in the filter bar, andkind, the value that key takes:select,multiple,range,date,boolean,relation(a remote picker) ortext. The token is the filter'skey(), except that afilterable()field's filter goes by its label in snake case (totalfor Total) unless that clashes with another filter's key. -
Each saved tab in the index payload's
tabs.savedcarries its search asq, andfilters.labelsnames the remote values of the saved view?saved_tab=opens, so the filter bar draws an open saved view's filters and search as its chips and text; changing one leaves the view and writes every chip to the URL. -
A select opts into a status meter with
meter(except: [...]). The payload carries the tick values asmeter, and a meter with fewer than 2 or more than 5 ticks throws aLogicExceptionnaming the field whenfields()builds. The workbench's order status leaves Cancelled out of the ticks:Field::select('Status') ->options(['pending' => 'Pending', 'paid' => 'Paid', 'shipped' => 'Shipped', 'cancelled' => 'Cancelled']) ->meter(except: ['cancelled']); -
->board('<field>')on a Resource's definition shows its list as a Board too, one column per option of that index field in declared order, plus a No value column when the field is nullable. The field must be an inline select with at most 12 inline options; anything else throws aLogicExceptionnaming the field when the Resource boots, and a subclass that drops the field calls->board(null). The index payload carriestable.board,{field, noValue}, ornullon a lens, without a board, or when the user cannot see the field.return $definition ->model(\App\Models\Order::class) ->board('status'); -
A list with a board opens in the layout its URL names,
?layout=boardor?layout=table, else in the one the user chose last on that Resource, else as the table.PUT .../resources/{resource}/layoutwith{layout}saves the choice per user (404 for a Resource without a board), and the index sends the layout it opened in astable.layout, alwaystableon a lens or without a board. -
GET .../resources/{resource}/board?column=<option>&page=<n>returns{rows, hasMore}: one page of 25 cards of a Board column, each row shaped as intable.rows, in the list's sort.&offset=<n>in place ofpagestarts at that card, which the Board's Show more sends so a card moved out of the column skips none. An emptycolumnis the No value column, allowed on a nullable field; an unknown column, a bad page or offset, or one at the count cap or past it is 422, and a Resource without a board is 404.GET .../board/countsreturns{columns: [{value, count}]}, one capped count per column in option order withnulllast on a nullable field. Both read the index's own query keys (filter,q,tab,saved_tab,sort). -
GET .../{id}/previewserves the preview panel. With an emptyfieldsForPreview()it returns the record's detail fields without its relation lists (a BelongsTo or MorphTo name stays), so every Resource has a preview;showOnPreview()no longer narrows it, a field markedshowOnPreview()oronlyOnPreview()joins it, andhideFromPreview()still drops a field. The reply adds the record'sabilitiesand its detailactions. Each user's panel is open or closed per Resource:PUT .../resources/{resource}/preview-panelwith{open}saves it, and the index sends it astable.previewOpen. The preview modal and the row's Preview button (the English stringPreview :title) are gone, with the index'sresource.previewflag: Space opens the panel on the cell cursor's row,clickAction('preview')opens it on the clicked row, andTagField::withPreview()opens it over the page. On a phone a tap on a list's card opens the panel full screen in place of the record's page; Ctrl or Cmd with the tap still opens the page. -
An app with no colours of its own opens in the new identity: steel neutrals, the layout blue primary (
#2e47e0in light,#8796ffin dark), the tealinfo, and an 8 px panel radius. The 56 token names keep their names and meaning; only their default values change. An app that sets any colour keeps its look. To keep copper, runphp artisan lathe:preset copper. -
theme.radiusdefaults to0.5rem(was0.625rem). A publishedconfig/lathe.phpkeeps the radius it lists; set it to0.5remfor the new corners. -
The bundled typeface is Archivo, with its width and weight axes in the latin and latin-ext subsets, in place of Inter Variable.
theme.fontset tonulluses it; page and record titles and widget values use its 122% width. -
Changed English strings since 1.0.0-beta.4, for an app that translates the panel; move each override to its new key:
TabsreadsViews(the views rail and the Views menu).Filter,:count :resourceandShow :count :resourceare gone with the index's Filter popover; the filter bar of a Resource that cannot search is namedFilter :resource.Edit :fieldis gone now that a cell opens its control from the keyboard, andPreview :titlewith the row's Preview button. New strings to translate::filter has no option :value,:filter takes a date as YYYY-MM-DD, >date, <date or a..b,:filter takes a number, >n, <n or a..b,:filter takes any text,:filter takes one value,:filter needs a value,:filter takes yes or no,Arrow keys,Board,Change undone,Clear the selection,Double-click,Edit a cell,Extend the selection,Go to the row's first or last cell,Keyboard shortcuts,Layout,Move 25 rows,Move the cell cursor,Move :title,Move to,No :filter matches :value,No :resource,No filter named :key,No value,Open full page,Open the row, on a cell that cannot be edited,Preview the row beside the list,record,Save and move right,Select,Select all matching,Select the page,Select the row,Show more,Show this sheet,Space,Table,This :resource was deleted.,Trashed takes with or only,Undo the last cell edit,You may not view this :resource.. -
Every Resource list, lens and relation table is a grid with one tab stop and a cell cursor: a click on a cell moves the cursor and no longer opens the row, and a link in a cell, such as a related record's name, opens once its cell holds the cursor, so a link in another cell takes two clicks; the arrows, Home, End, Page Up and Page Down move it.
clickActionnow names what Enter on a cell that cannot be edited, or a click on the title cell, does. An inline cell shows its value until Enter, F2 or a double-click opens its control, so the English stringEdit :fieldis gone; Tab saves and moves right, Escape cancels, a refused value stays open with the server's message, and a stale save opens the conflict dialog. Ctrl/Cmd+Z, or the toast's Undo, undoes the last cell edit made in the tab; running an action empties that history. Undo covers cell edits and Board moves only: an action, a delete or a form save cannot be undone. X, Shift+Up/Down and Shift+click select rows, Escape clears them, and?on a list, or Keyboard shortcuts in the user menu, lists the keys. The row abilities gaininlineEditwhen a column edits inline, relation rows carryupdatedAt, and Load more stops at 100 rows, where a pager takes over. -
filterable()on a select field that names no$optionslists the field's own options as a select filter, asfilterable(options: [...])does, where it gave a range filter that took only numbers, sostatus:reviewin the filter bar was a red chip. A select with remote options keeps the range filter.SelectField::makeFieldFilter()builds it.
Behaviour changes
- A resource index lists its views in a 220 px rail at the card's left, in place of the tab band: the developer tabs, then the user's saved views (Save view, rename, delete, and reorder by dragging or with Alt+Up/Down), then the lenses. Tabs and saved views keep their deferred, capped counts; lenses show none. Below 1100 px, or while the preview panel sits beside the card, the rail folds into a Views menu at the start of the toolbar, which opens the same list. Saved tabs carry over as views unchanged.
- A resource index and its lenses filter from one bar above the table, in place of the search box, the Filter button with its popover, and the chip row under the toolbar. Type
status:pending,paid,total:>1500,total:10..50orcustomer:"Ann Taylor"and press Enter: each token becomes a chip that writes the realfilter[...]keys (trashed:withortrashed:onlythetrashedkey), plain words search asqdid, and a token that cannot apply shows as a red chip with its reason, such as "No filter named statuz", without changing the rows. A chip change sends one visit 300 ms after the last; Backspace in the empty input removes the last chip, Left arrow reaches the chips and/focuses the bar. A reload or a shared link draws the same chips from the URL. A click on the bar lists the Resource's filters, and typing the start of one's name or key (sta) narrows the list to it; choosing a filter puts its key in the input and lists its values (a relation's from its options search, a range, date or text filter its grammar), and choosing a value adds the chip. Up and Down move through the list, Enter picks the highlighted item and Escape closes it. Relation tables keep their search box and filter panel. - A Resource with
->board()lists as a Board too: a Table/Board switch beside the filter bar shows one column per option, each headed by the option's meter or badge and its count capped at 10,000+, with 25 cards and Show more; a card shows its phone card's title, badge, value and meta. The Board follows the filter bar, the search and the open view, and stays chosen per user and in the link (?layout=board). Drag a card to another column, press Shift+Left or Shift+Right on it, or use its Move to menu: the field saves as its inline edit does, both counts change, a refused move goes back with the reason, and Ctrl/Cmd+Z or the toast's Undo takes it back. The arrows move between cards, Space or a click opens the preview panel, and the Board selects nothing. A phone and a lens show no Board. New English strings:Board,Table,Layout,No :resource,No value,Show more,Move :titleandMove to. - Table rows are 40 px tall at the comfortable density (was 48 px), and the nova style's default buttons, inputs and selects are 32 px (was 34 px).
From 1.0.0-beta.3 to 1.0.0-beta.4
API changes
- A
shell.headerreplacement gets the page'sbreadcrumbsand apageBarReffor the phone's page title and main action, now that the default top bar carries both; without a page bar, a page keeps its title and main action on a phone. - The
@lathephp/uiButton gains thedestructive-solidvariant for a confirm dialog's button, anddestructiveturns outlined in the nova style; Badge gainssuccess,warningandinfo. Every style draws them. ProgressResult::tone()keeps a progress bar in one colour (primary, info, success, warning or destructive) at any percentage, for a share that measures a state rather than a goal, andProgressResult::label()replaces the words after the share. The workbench's Shipped card uses both.- Changed English strings since 1.0.0-beta.3, for an app that translates the panel; move each override to its new key:
Create & Add AnotherreadsCreate and add another, andOtherreads:count more(the rest row of a pie drawn as bars, such as "15 more").Create :resourcekeeps its key and fills in the resource name in sentence case, so the create form's title, crumb and button read "Create order"; a translation that starts with the name, or a language that capitalises nouns, writes:Resource.
Behaviour changes
- The panel follows the approved design throughout. The sidebar has uppercase group headings that fold, and the top bar carries the breadcrumb and a "Search or jump to…" button. Every page has a one-row header with its actions on the right, such as an index's "Create order". Tables have a muted header row, 48 px rows (56 px when spacious), status badges that open inline edit, related names in the text colour and ghost toolbar buttons. Forms sit in cards with "Optional" beside the fields that may stay empty, in place of a mark on the required ones, and a sticky footer. Record pages, dashboards, dialogs, toasts, notifications and the search palette follow their boards, and a phone keeps a 12 px gutter. Only the default nova style changes; the other styles keep their look.
From 1.0.0-beta.2 to 1.0.0-beta.3
API changes
- The testing kit's
DashboardTestergainscsv(),saveLayout()andresetLayout()for the new dashboard routes. - Each user can save their own layout of a dashboard (order, size and hidden cards) and reset it to the layout in code, through
PUTandDELETEonapi/dashboards/{dashboard}/layout. A card removed from code drops out of a saved layout, and a new one shows at the end.Dashboard::customizable(false)turns it off for a dashboard, and the dashboard payload gainscustomizable,customizedand ahiddenWidgetsprop. - One range picker in a dashboard's header drives every widget on it.
Dashboard::ranges()sets its options, 7 days, 30 days and 12 months by default, and the page reads the picked one from?range=. A widget that does not offer the picked range shows its default range, and its value response names that range asfallbackRange;Widget::defaultRangeKey()says which range that is. The workbench's Sales dashboard gains Orders per day and Orders by status. On the page the picker is a segmented control beside "Updated ... ago" and Refresh, keeps the pick in the URL, and each card drops its own range dropdown, names the range it fell back to, dims its last value while it reloads and says "could not load" with Try again when it fails. - A dashboard's trend, bar, partition, pie, radar and table cards download as CSV from
GET api/dashboards/{dashboard}/widgets/{widget}/csv, with plain numbers andYYYY-MM-DDdates; a widget's descriptor gainscsv.Widget::link()sets where a card's Open records goes, and a card whose aggregates read one model links to that model's Resource index for a user who may list it, aslinkin the value response. The bar, partition, pie and radar helpers now apply the host Resource's row scope and tell the cache which tables they read. SelectField::badges()shows each value as a badge in a tone: neutral, primary, info, success, warning or danger. The workbench's order statuses use it.- The
@lathephp/ui/popoverand@lathephp/ui/selectsubpaths, so a page can load the popover or the select without the whole kit. - The config keys
brand.logoandbrand.logo_darkput your logo at the top of the sidebar, with a separate image for the dark theme. - Each user's column choices on a resource index (shown, hidden, order, pinned) are saved on the server in the new
lathe_user_preferencestable, throughPUTandDELETEonapi/resources/{resource}/columns. A column removed from code drops out of a saved choice, and a new one shows at the end. Runphp artisan migrateafter upgrading. GET api/resources/{resource}/{resourceId}/history/latestanswers a record's newest five action events (who, what and when) for its History card, behind the sameviewAnyof the action log as the Action Events panel.- A record page's header shows a badge beside the title and one meta line.
ResourceDefinition::recordHeader(badge:, meta:)names their detail fields: the badge defaults to the first field with badges, and a named meta field shows as " ResourceDefinition::phoneCard(title:, badge:, value:, meta:)names the index columns a row's card shows below 768 px; a slot left out is picked from the index (the record's title, the first badge, the first number and the first relation).SelectField::hasBadges()says whether a select shows badges.- An action's dialog is titled by its confirm text, such as "Mark 3 orders as shipped?", or by the action's name when it has none, and its primary button repeats the action's name. Without
size()a dialog is 400 px for a confirm and 520 px for an action with fields; the metadata'ssizeis thensmallormediumwhere it was2xl. :titlein an action's confirm text becomes the record's title when it runs on one record, such as "Cancel order ORD-79186507?": the form routeapi/resources/{resource}/actions/{action}/formtakesresourceId(404 when the detail query cannot find it) andAction::confirmTextFor()takes the title as a second argument. The workbench's Cancel order keeps the order with "Keep order".- The import dialog shows its steps, File, Map columns, Check and Import, opens 720 px wide, and its check button names the file's rows, such as "Check 2,400 rows"; the upload step's
import:headers-detecteddata gainstotal_rows. The edit-conflict dialog's buttons read "Load their version" and "Save mine over theirs". Action::requirePassword()asks for the user's password before a run unless it was confirmed withinauth.password_timeout: the run answers 423, and the open dialog shows "Confirm your password" in place of its content, then runs the action after a correct password, so two dialogs never stack. The workbench's Merge tags uses it.setPasswordConfirmer()on the panel's internal object now returns the confirmer it replaces.ResourceDefinition::globalSearchSubtitle()sets the line under a result in the search palette without changing the record's subtitle; the workbench's orders show "Prof. Warren Shields II · Oct 17, 2026 · $1,234.00" and list three per search. Each Resource group in theapi/searchanswer gainscount({value, exact, capped, estimated}, or null when the group shows every match), counted up to 1,000 only when the group has more matches than it shows, and the palette ends such a group with "Show all 20 orders", which opens the index searched for the term.- At most three toasts show; older ones fold into "N more" and come back as the shown ones close. Queued bulk runs, exports and imports show in that one stack at the bottom right instead of their own panel at the bottom left: a running task's toast stays and updates in place, a plain result closes after 5 seconds, and a result with failures stays, such as "2,388 of 2,400 products imported" with "Download failed rows" under it.
ToastMessagegains optionalbodyanddismissible, and an import's status JSON gainsresource_label. - Changed English strings since 1.0.0-beta.2, for an app that translates the panel; move each override to its new key:
Run Actionis gone (the primary button shows the action's name);Mark all readreadsMark all as read;OverridereadsSave mine over theirsand the conflict dialog'sRefreshreadsLoad their version(the dashboard keepsRefresh);Someone else saved this record after you opened it. Refresh to load their changes, or override to save yours over them.readsSomeone else saved this record after you opened it. Load their version, or save yours over theirs.;ValidatereadsCheck :count rows;Validate the file before importing. Nothing is saved.readsCheck the file before importing. Nothing is saved.;Validating the file…readsChecking the file…;Download Failed RowsreadsDownload failed rows;Runsis gone (queued runs show in the toast stack); the password dialog'sConfirm passwordreadsConfirm your password(field labels keepConfirm password);Showing :from to :to of :countreads:from–:to of :count;Showing :from to :toreads:from–:to;NextreadsNext page;PreviousreadsPrevious page;All :count rows on this page are selected.is gone (the selection bar reads:count selectedandAll :count selected);All matching rows selected (:count)readsAll matching rows selected;Select all matching rows (:count)readsSelect all matching rows;Applyis gone (filters apply as they change). - Dashboard cards in one row share the tallest card's height, and
height()is now a minimum. A value card shows every digit on a desktop and a short form on a phone, the change as a signed badge, then "vs" and the earlier value; with no earlier data it says so.ValueResult::lowerIsBetter()shows a rise in the destructive colour and a fall in the success colour. The grid gap is 20 px, and below 768 px value cards sit two across. - The default theme is Lathe's copper design in light and dark. Apps that set
theme.colorskeep their colours. New public tokens:brand,focus,skeleton,scrim,chart-other,sidebar-hover, the tintsprimary-subtle,success-subtle,warning-subtle,info-subtleanddestructive-subtlewith their text coloursprimary-subtle-foreground,success-subtle-foreground,warning-subtle-foreground,info-subtle-foregroundanddestructive-subtle-foreground, andshadow-xstoshadow-lg. The existinglinkandlink-hovertokens are copper where they were blue. - The 16 new colour tokens are
theme.colorskeys andLathe\Theme\Colorcases. When an app sets any colour of its own, every token it did not set keeps its value from before copper, so the app keeps its look;brandandfocustakeprimaryat 3:1 on the page, and each-subtlepair is a tint of its colour with text at 4.5:1. - Toasts render with Base UI Toast. A toast stays 5 seconds, its timer pauses on hover and focus, and an error stays until it is dismissed. The
@lathephp/ui/sonnersubpath is removed;@lathephp/ui/toastreplaces it, and sonner is no longer a dependency.ToastMessagegains atimeoutfield. - Date-times read on the 24-hour clock, such as
Oct 17, 2026, 23:12, where they read11:12 PMbefore. - The user menu's "Log out" reads "Sign out"; an app that translates the panel moves its
Log outstring toSign out. The menu's trigger shows the email under the name. - A creatable relation field offers
Create customer "Hanna Vos"at the foot of its search results. Choosing it opens the related create form in a 480 px sheet from the right with the typed text in the related Resource's title field, and saving selects the new record. The field's payload gainscreateTitle, the related title attribute, or null when the title is a closure. - A record's detail page has two columns. Its to-many relations are tabs in the main column, each with its count when the field has
withCount(), followed by a card per wide field; the right column holds a Details card with the other fields, a card per belongs-to, morph-to or has-one record, and a History card with the newest five action events and Show all. The header's badge and meta fields and the title field are left out of Details. Sections, panel limits and field tab groups now shape forms only. The detail payload gainstitleKey,countsandhistory, and the detail page runs one more query, the relation counts. RelationField::modalSize()is still accepted but no longer sizes anything: the create sheet is always 480 px wide.- A dashboard card no longer has a range dropdown of its own: the one range picker in the dashboard's header sets every card's range, from
Dashboard::ranges(). A widget's ownranges()now only says which of those ranges it can show.
Behaviour changes
- A new notification only lights the bell, with a dot in the brand colour or the count with
show_unread_count, and never raises a toast. The panel groups notifications under Today and Earlier, shows at most two buttons on each, and using a button marks the notification read. - On a phone the search palette fills the screen with a Cancel button, and every dialog is a bottom sheet whose buttons stack 44 px tall with the action on top. On a wider screen the palette is 640 px. The palette marks the words of the term in each result, and a term the server refuses (too long, too many words) shows the server's reason instead of Retry.
- A customizable dashboard has a Customize button. In Customize mode a user moves cards by dragging their handle or with the keyboard, sets a card's size or hides it from its ⋯ menu, adds hidden cards back, then saves the layout for their account, cancels or resets to the default.
- Each dashboard card has a ⋯ menu with Refresh, Open records when the card links to records the user may list, and Download CSV for chart and table cards.
- A pie widget with more than six slices draws as bars: the five largest against the largest, then the rest added up as one Other row.
- A resource index puts its title on a row of its own above one table card: the tab band (saved views and lenses, each lens with its icon), a toolbar row with the search open at 260 px, and the table. Ticking rows turns the toolbar row into the selection bar ("3 selected", "Select all 10,000", the actions, Clear). Rows show View and Edit on hover, and the row menu keeps Delete last. The pager shows First, Previous, page numbers, Next and Last, with the range "1–25 of 10,000"; Last hides when the count is capped. An inline edit's toast offers Undo for 5 seconds. Below 768 px rows are cards and Filter opens a bottom sheet. The lens drop-down is gone.
- Each user can show, hide, reorder and pin the index columns from the picker at the header's right end; pinned columns stay in view when the table scrolls sideways.
- Value and progress widgets show their number at once instead of counting up to it. Tab counts and the table's summary footer hold their space while they load and fade in.
- A create or edit form is centred at 880 px with labels above the fields, its first field full width and short fields in pairs from 1024 px. Cancel and the save buttons sit in a footer stuck to the bottom of the window, which shows "Unsaved changes" while the form holds unsaved values; leaving the page then asks first.
- A failed save scrolls to a summary that links each field needing a change, in the error colour, and focuses the first; a field's error clears as soon as it changes. A readonly field shows on a muted ground with a dashed border, and any other disabled control is dimmed.
- A field shown by
visibleWhen()sits on its own row under its parent, on a muted ground, with the reason, such as "Shown because Type is Company".
What you see
After composer update lathe/lathe and the changes above, php artisan lathe:doctor ends with 0 FAIL.