Introducing Laravel Sheets

Today I am releasing the first beta of Laravel Sheets: Laravel, reimagined in idiomatic Google Sheets. It has routing, controllers, models, Blade views, Artisan and a passing test suite, and all of it is formulas. Let's go through it.

This week Laravel shipped Laravel Rust and, a day later, Laravel Go. Both are for people who want speed and types. Neither does anything for the largest group of programmers in the world, the ones whose programs start with an equals sign. Laravel Sheets is for them.

The whole framework, with an example app, is one Google Sheet. It is view only, so make a copy to run your own.

The localhost:8000 tab answering GET /users with a rendered Blade view

That is the localhost:8000 tab. You pick a method, type a URL, and the sheet recalculates into the response.

Why Laravel Sheets alongside Laravel Rust and Laravel Go?

PHP boots the framework for every request and shares nothing between requests. A spreadsheet recalculates on every edit and shares nothing between recalculations. It is the same model, and Sheets got there without a process manager.

There is no install, no build and no deploy. The app is already in the cloud. It handles one request at a time, which removes a whole category of concurrency bugs.

Every intermediate value is in a cell. The compiled regex for each route sits in the bootstrap/cache/routes tab, where you can read it. Debugging is clicking on things.

It uses no Apps Script. If it cannot be done in a formula, Laravel Sheets does not do it.

A route is a row

In Laravel PHP you would write this:

Route::get('/user/{id}', fn (string $id) => 'User '.$id)
    ->whereNumber('id')
    ->name('user.show');

In Laravel Sheets it is one row on the routes/web tab:

Route::   uri          {1}   action          ->name()    ->where()
get       /user/{id}   42    ="User "&C4     user.show   id: number

The first column is the registrar, so the names carry over: get, post, any, redirect, permanentRedirect, view, fallback. For Route::match you write the verbs, as in put|patch.

The routes/web tab, with one route per row and the matched route highlighted

The highlighted row is the route that matched the current request.

A closure is a formula

The router fills the {1}, {2} and {3} cells on the matching row. As in Laravel, parameters are injected by order, not by name. The action is any formula that reads them:

/hello/{name?}
    ="Hello, "&IF(C6="","John",C6)&"!"

/posts/{post}/comments/{comment}
    ="Post "&C7&", comment "&D7

/sqrt/{n}
    =SQRT(C10)

Request /sqrt/16 and you get 4. Request /sqrt/-4 and the formula returns #NUM!, which Laravel Sheets turns into a 500 that names the cell. The stack trace is one cell deep.

Constraints go in the ->where() column: id: number, name: alpha, category: movie|song|painting, or any regular expression. Each route compiles to a regex, so /user/{id} with id: number becomes ^/user/([0-9]+)/?$. A request that fails a constraint is a 404. A request with the wrong verb is a 405, worded the way Laravel words it: "The GET method is not supported for route orders. Supported methods: POST."

A route group is a lookup

Groups live on their own tab, one per row, with a prefix, a name prefix and middleware. A route joins a group through a dropdown.

group     prefix          name prefix       middleware
admin     admin           admin.            auth
billing   admin/billing   admin.billing.    auth

A route for /invoices/{invoice} in the billing group answers at /admin/billing/invoices/{invoice} and is named admin.billing.invoices.show.

A controller is also a row

Write UserController@show as the action and the router calls that row on the app/Http/Controllers tab:

controller       method   {1}   response
UserController   index          view('users.index')
UserController   show     2     view('users.show')

Point a route at a controller that is not there and you get the error you already know: "Target class [PostController] does not exist."

A model is a table

The database/users tab is a Sheets table named users. Eloquent becomes a lookup:

User::find($id)->name
    =XLOOKUP(C3, users[id], users[name])

Route model binding works by convention. A {user} parameter is looked up in database/users by id, and a missing row is a 404 before your formula runs. {user:email} binds on the email column instead. Add a database/posts tab and {post} starts binding with no other setup. A migration is inserting a column.

Blade is a tab

The view users.index is the tab resources/views/users/index. You lay the page out in cells.

{{ $user->name }}
    =XLOOKUP(param_1, users[id], users[name])

@foreach
    =HSTACK(users[id], users[name], users[email], users[role])

@if
    =IF(B5="admin", "Admins can manage every route.", "")

@extends
    the extends column on the resources/views tab

@yield('content')
    that text, in a cell of the layout tab

The resources/views/users/index tab, a Blade view laid out in cells

The layout is a tab too, with a nav row, a cell that says @yield('content') and a footer. When a controller returns view('users.index'), the framework stacks the layout's top rows, the view and the layout's bottom rows, and the browser tab shows the result cell for cell. That is the first screenshot in this post.

Artisan runs in a tab

The artisan route:list tab, listing all 19 routes

route:list has a --path filter and a -v checkbox for middleware. Where Laravel shows nothing for a closure, Laravel Sheets shows the formula.

The tinker tab does URL generation. route('profile') with id=1, photos=yes returns http://localhost:8000/user/1/profile?photos=yes. Leave out a required parameter and you get "Missing required parameter for [Route: orders.update] [URI: orders/{id}] [Missing parameter: id]."

All 27 tests pass

The tests/Feature/RoutingTest tab has one request per row with the status and route it expects. The router runs every row on every recalculation, so the suite is always up to date.

PASS  Tests\Feature\RoutingTest
Tests:  27 passed

Add a fallback route and six tests fail immediately, because the unmatched GETs they expect to 404 now have somewhere to go. Remove it and they pass again.

What is not there yet

  • Middleware. It is listed on every route and blocks nothing.
  • Queues. A spreadsheet does everything at once, so the design needs thought.
  • Nested groups. A group inside a group is written as its own row with the longer prefix.
  • Redirects. You get the 302 and the Location, but the browser tab does not follow it.

Getting started

Open the sheet, choose File, then Make a copy, and go to the localhost:8000 tab. Type /users/2 into the address cell. Then add a row to routes/web and request it.

Laravel Sheets is not affiliated with Laravel. They have not been in touch.

# Dec 3, 2026