Release
tbtop/admin 0.8.3: stored secrets, a yes/no/any filter and self-linking rich text
Password fields that keep a stored API key out of the browser, a one-line yes/no/any filter, rich text that links URLs as you type, row groups that stay collapsed across reloads, and fixes for the testing API. No code changes are needed.
0.8.3 lets a form hold an API key without sending it back to the browser, adds a one-line yes / no / any filter, and makes the rich text editor link URLs as you type. Tables remember which row groups a user collapsed and keep their toolbar on screen while the first page loads. It also fixes the testing API and rich text input on a fresh Laravel 13 install. No code changes are needed to upgrade.
Stored secrets
secret() on a password field keeps the stored value out of the page props and the HTML. The form shows "Set" with Replace, and optionally Clear and a preview your server makes. A field left alone is not submitted, so $model->update($ctx->form) keeps the stored value.
$s->password('stripe_secret')
->preview(fn (string $value): string => '…'.substr($value, -4)) // optional
->clearable(), // optional
$s->password('smtp_password')->secret(),- A replacement arrives as the new string. A clear arrives as
null, and only on aclearable()field: elsewhere the server drops anull, so a hand-made request or an MCP agent cannot wipe the secret. - A required secret is never clearable, in the form or on the server.
preview()runs on the server and only its return value ships. A last-four preview sends part of the credential, so it is opt-in.secret()works on top-level form fields, sections and tabs included. Inside a repeater it throws instead of shipping the value. The Node package has the same API.
A yes / no / any filter
Radio::ternary() is the three-state filter for a boolean column: Any, Yes and No. Any never narrows the query. The labels are arguments, and the PHP and Node packages both have it.
->filters([
Radio::make('is_published')->label('Published')->ternary(),
])Rich text links itself
A URL or an email typed or pasted into a rich text field becomes a link: http(s):// as typed, a bare www. address with https://, an email as mailto:. Text in a code block stays plain, and trailing punctuation stays out of the link. Stored content needs no change.
Tables
- Collapsible row groups remember which groups each user opened or closed, per table, in the browser. A reload keeps them;
collapsed: trueonly sets the default for a group never toggled. - On the first load the toolbar, tabs, search and header actions stay on screen, and the skeleton only takes the place of the rows, so the layout no longer jumps. A custom
loadingslot now replaces the grid too, not the whole block.
Fixes
tbtop()exists in Packagist installs: the root package now autoloads the testing helpers.- The testing API posts enums, dates and models as the scalars the client sends, submits forms as JSON, and reads validation errors under
session.serialization=json. - Rich text survives the
TrimStringsandConvertEmptyStringsToNullmiddleware, in PHP and Node: a space before bold text is no longer lost. Number::step('0.01')accepts a numeric string.- In dark mode the rich text editor has the same fill and border as the other inputs, and blockquotes stay visible.
Upgrade
Move tbtop/admin, @tbtop/inertia-admin and, on Node, @tbtop/admin to 0.8.3 together. No code changes are needed. The new features are in the docs for stored secrets and the yes / no / any filter. Every change is in the changelog.