Elyra
Elyra The coding agent eTerm The terminal that knows where each command ends Huskarl AI colleagues on your own Mac Starf An activity monitor for Apple silicon that never invents a number etrans An SSH and SFTP client for macOS Elyra VM Virtual machines for macOS, Linux and Windows on your Mac Litr A small, native web browser for macOS Notr A notebook for macOS e The native code editor Elyra Grove Native local development environment Askr The real server for Laravel & PHP Elyra Framework Rust + Svelte 5 framework for desktop apps Elyra Conductor Local project conductor Refr Local-first PDF workspace for macOS Elyra Workspace A desktop workspace for coding agents eDock A container runtime for the Mac Elyra SQL Server MySQL-compatible SQL server in Rust Elyra Félagi Agents as teammates on one board Elyra SQL Client Native desktop SQL workbench Elyra SQL Anywhere Replication-ready SQL engine Elyra Sjá SEO & GEO workspace for macOS Elyra DataGrid Server-driven data grid for Laravel
Reference
Ratatosk CLI
Roadmap
RFC 0001: make:resource
RFC 0002: live queries
RFC 0003: MCP server
RFC 0004: MCP resource templates
RFC 0005: a Laravel backend
RFC 0006: Laravel broadcasting
RFC 0007: offline and sync
RFC 0008: Laravel notifications
RFC 0009: Files
RFC 0010: Laravel abilities
RFC 0011: an assistant in the app
RFC 0012: @elyra/ui
RFC 0013: the assistant sees the window
RFC 0014: Elyra Inspector
RFC 0015: presence
RFC 0016: capabilities per window
RFC 0017: record invalidation
RFC 0018: the assistant's answer, streamed
RFC 0019: a window from the tray
RFC 0020: an app that stays in the tray
RFC 0021: a server chosen at sign-in
RFC 0022: signed in to more than one server
RFC 0023: private channels a window listens to
RFC 0024: updates from the backend
RFC 0025: commands and configuration
RFC 0026: the running app, for coding agents
RFC 0027: the assistant's code mode
RFC 0028: the tray's icon, and the app's
RFC 0029: installers
RFC 0030: the app's identity on Windows
RFC 0031: a token per workspace
RFC 0032: the microphone
RFC 0033: diagnostics the user can send
RFC 0034: one screen in several states at once
RFC 0035: point at it, and hand it to the agent
RFC 0036: rata check, the app checked as a whole
RFC 0037: Theme Studio
RFC 0038: edit it in its own app
RFC 0039: a write shown at once in every window
RFC 0040: the two halves agree
RFC 0041: Quick Look
RFC 0042: follow a colleague
RFC 0043: every write seen
RFC 0044: composite keys
RFC 0045: bigint all the way
RFC 0046: pivot columns
RFC 0047: relations on any key
RFC 0048: more providers
RFC 0049: OpenAI web search
RFC 0050: integer-keyed arguments
RFC 0051: citations
RFC 0052: open documents
RFC 0053: exit hooks
RFC 0054: the gui feature
RFC 0055: menus that change
RFC 0056: the framework's own words
RFC 0057: rata upgrade
RFC 0058: @elyra/charts
RFC 0059: all of WireCharts
RFC 0060: exporting a chart
RFC 0061: zoom
RFC 0062: printing
RFC 0063: linked charts
RFC 0064: report pages
RFC 0065: marks
RFC 0066: taking a table out
RFC 0067: totals
RFC 0068: columns the user picks
RFC 0069: filters
RFC 0070: saved views
RFC 0071: lists over Laravel
RFC 0072: targets
RFC 0073: every row out
RFC 0074: grouped rows
RFC 0075: pinned columns
RFC 0076: views on the server
RFC 0077: every match selected
RFC 0078: editing in the table
RFC 0079: many cells at once
RFC 0080: a value for the selected rows
RFC 0081: a new row in the table
RFC 0082: a related record in a cell
RFC 0083: a filter by a related record
RFC 0084: one write for many rows
RFC 0085: the keys shown
RFC 0086: many rows in Laravel
RFC 0087: many rows deleted
RFC 0088: the trash
Release notes
Changelog
Elyra
RFC 0071 — Lists over Laravel: filters, totals and the search, served

RFC 0071 — Lists over Laravel: filters, totals and the search, served

Status: implemented (2026-11-28) · Target: 0.64.0 · builds on RFC 0005, RFC 0067 and RFC 0069 · see Decisions

Summary

0.63's lists filter by their columns and total them in their foot, and a list over the app's own database gets both from make:resource. A list over a Laravel backend gets neither: RFC 0069 left "filters in the Laravel package" for later, and RFC 0067 reads a page's totals that no Laravel answer has. Worse, a filter set on such a list doesn't arrive at all: Backend::query encodes a flat struct, and filters[amount][min] isn't flat. An app with a Laravel backend (Félagi is one) builds its lists' filters by hand on both sides, or goes without.

This RFC carries a list's question to Laravel and its answer back:

// routes/api.php → InvoiceController@index
public function index(Request $request)
{
    return Invoice::query()
        ->elyraList($request, [
            'search' => ['number', 'customer'],
            'sort' => ['number', 'due', 'amount'],
            'filters' => ['status' => 'options', 'amount' => 'range', 'due' => 'dates', 'customer' => 'text'],
            'totals' => ['amount' => 'sum'],
        ]);
}
  • The desktop sends the filters: Backend::query encodes nested values as PHP reads them (filters[status][]=open&filters[amount][min]=10000), and make:resource --backend writes a typed {Model}Filters into the index command's query, as RFC 0069 did for a local one.
  • elyraList in the Laravel package: one builder macro that applies the search, the filters, the sort and the page from the request, each through an allowlist, and paginates; with totals, the page's answer carries totals over every row that matched, which the Table's foot shows (RFC 0067) rather than "This page".
  • The same kinds as RFC 0069: text (contains, % and _ as themselves), options, a range, days; a key or a kind the allowlist doesn't name is ignored, never reaches SQL.

Motivation

  • Most lists in a Laravel-backed app are the server's. The filters and totals of 0.63 stop at the window's edge for them.
  • The query string has to be right on both sides. PHP's brackets are what Laravel reads; the desktop has to write them, and the server has to take only what it allows.
  • Every controller would write the same thirty lines: a search over some columns, a sort through an allowlist, a cap on per_page, the filters by kind, and a sum over the same WHERE. One macro, tested once.
  • A page's sum isn't the list's. "This page" is honest, but the sum the user wants is of every matching invoice; only the server can give it without sending every row.

Current state (0.63)

  • make:resource --backend writes {Ty}Query { search, sort, direction, page, per_page } and sends it with Backend::get(PATH).query(&query); reqwest's query takes a flat struct (serde_urlencoded).
  • The Laravel package has no list helper; its skill says a list sends search, sort, direction, page and per_page, and the controller ->paginate()s.
  • Table reads page.totals (RFC 0067) and sends query.filters (RFC 0069).

Design

The desktop: nested query values

BackendRequest::query encodes with brackets where a value is nested: a map is key[sub]=…, a list key[]=…, null and empty lists left out; flat values as before. So { search: "ada", filters: { status: ["open", "overdue"], amount: { min: 10000 } } } is search=ada&filters[status][]=open&filters[status][]=overdue&filters[amount][min]=10000. (The brackets are percent-encoded on the wire; PHP decodes them.)

make:resource --backend's query gets filters: Option<{Ty}Filters>, typed by the fields as RFC 0069's, and the view's columns their filter; its generated test checks the URL a filter makes.

The server: elyraList

A Builder macro (Eloquent\Builder::macro('elyraList', …)), registered by the package's provider:

Option Takes from the request Does
search search where (a like ? or b like ?), the term's % and _ escaped
sort sort, direction orderBy, only a listed column, else the key; then the key
filters filters[...] per kind: text contains, options whereIn, range >=/<=, dates by day (to before the next day)
totals — sum/avg/min/max/count over the matched rows, before paging
per_page per_page capped (max_per_page, 100 by default)

It returns a LengthAwarePaginator whose JSON has totals beside data and the paginator's own keys, so the Table's foot says "Total" for them. An API Resource collection takes it too (Resource::collection(...) with additional(['totals' => ...]), which the macro's totals() gives).

What isn't let through

A filter key not in filters, or a kind not its own (a range sent for an options column), is ignored, as an unknown sort is. Values are bound, never interpolated; text escapes % and _ (ESCAPE '!', as RFC 0069's where_contains).

Testing

  • Rust: the bracket encoding (maps, lists, nested, null, empty, flat values unchanged), and make:resource --backend's filters struct and its URL test; the smoke test with --backend sends a filter.
  • Against a real Laravel (scripts/laravel-backend.sh, the CI job "Laravel backend (real app)", which installs this repository's package): its customers index uses elyraList, and a new laravel_lists test, from the desktop through Backend, checks each kind of filter; an unknown key and a wrong kind ignored; the search's % and _; the sort allowlisted; per_page capped; and totals over every match, not the page. The package has no test suite of its own, and this keeps it that way.

Implementation plan

  1. BackendRequest::query with nested values, and its tests.
  2. make:resource --backend: the filters struct, the view's filters, the test; the skill's and the docs' lists.
  3. The package's elyraList macro and totals; the real app's customers index on it, and laravel_lists; the skill (elyra-desktop-backend) shows it.
  4. Docs (docs/backend.md, docs/resources.md), CHANGELOG.

Open questions

  1. A macro on the builder, or a trait on the model? Recommendation: a builder macro. It works on any query (a scope, a relation, Invoice::where(...)), and a model needs nothing added.
  2. Totals in the paginator's JSON, or in a header? Recommendation: in the JSON, beside data, where Table reads them (page.totals); a header would need the runtime to carry it.
  3. The allowlist by kind, or by column only (the kind from the column's type)? Recommendation: by kind, written in the controller. The server's column types don't say "options" from "text", and the controller is where the API's contract is read.
  4. make:resource --backend writes the Laravel controller too? Recommendation: no, as today: it writes the desktop's half and says what the API serves; the skill shows the controller with elyraList.
  5. Saved views (RFC 0070) on the server? Recommendation: not in this RFC; they stay on the machine.

As built

  • The bracket encoding is Http's own (flatten_query, which Backend builds on): a map is key[sub], a list of scalars key[], a list of maps key[0][sub], at any depth; null and empty lists and maps are left out; a bool is 1 or 0, as before. A query that used to be refused for a nested value now goes.
  • Range and Dates moved to substrate_core::filter, re-exported as elyra::filter and still as elyra::db::filter: a backend-only app (no database feature) has them for its typed filters.
  • Page<T> has totals (Option<BTreeMap<String, f64>>), read from beside data or from meta, and written as null without them: specta's TypeScript can't say "left out when None". Page::new builds one without; Page is PartialEq, no longer Eq.
  • elyraList is Lists\ElyraList::apply, registered on the Eloquent builder by the provider, and answers an ElyraPaginator (Laravel's, with totals in toArray). The search and a text filter are lower(col) like lower(?) escape '!'; totals are one select of aggregates over a clone of the filtered query, before the sort and the page; a sum or a count of nothing is 0, a mean, least or greatest of nothing is left out.
  • make:resource --backend shares the filters struct with the local one (filters_parts), from elyra::filter; its test sends a filter and checks filters%5B<column>%5D= in the URL. rata prints the controller's elyraList call, with the list's search, sort and filters.
  • The real app (scripts/laravel-backend.sh) has credit and since on its customers, and its index is elyraList; laravel_lists checks each kind, the escaping, what's ignored, the sort, the cap and the totals, and runs in CI's Laravel job. Run locally against PHP 8.5, with laravel_backend and laravel_offline as before.

Decisions

  1. A builder macro, elyraList, not a trait on the model.
  2. Totals in the page's JSON, beside data, where Table reads them.
  3. The allowlist by kind, written in the controller.
  4. make:resource --backend doesn't write the Laravel controller; the skill shows it with elyraList.
  5. No views on the server in this RFC.

Not in this RFC

  • Filters on relations (whereHas) and OR between filters.
  • Writing the Laravel controller from make:resource.
  • Views kept on the server.

Alternatives considered

  • JSON in one query parameter (filters={"status":["open"]}): easy to send, and every controller decodes and validates it by hand; Laravel's $request->input('filters.status') reads brackets already.
  • serde_qs as a dependency: does the encoding, with more than we need; the bracket form is thirty lines and tests.
  • Each controller by hand: the thirty lines, thirty times, each with its own idea of escaping.