Placeholder templates
Put {placeholders} in a Tinker snippet or Artisan command. Run Code prompts for the values and substitutes them before running, so one saved template covers a whole family of one-off checks. Free.
// features
LaraBench helps you run code against real Laravel apps, understand what happened, and save the snippets and commands you reuse. It is a desktop app for the small debugging and operations moments that usually send you bouncing between Tinker, SSH, logs, and notes.
// what it covers
Put {placeholders} in a Tinker snippet or Artisan command. Run Code prompts for the values and substitutes them before running, so one saved template covers a whole family of one-off checks. Free.
Run a template across named value lists like id: 1,2,3 and name: a,b,c. Each row runs in sequence with its own status, duration, and output, and you can stop after the current row, retry incomplete rows, and export the table as CSV, Markdown, or JSON.
The editor uses Monaco with PHP intelligence and generated Laravel stubs, so common facades, helpers, Eloquent models, and project symbols autocomplete as you write snippets.
Every run records duration and exit state, so quick checks, failed commands, and slow snippets are easier to understand after the fact.
Connections, snippets, commands, and history live on your machine. Nothing is uploaded, and you never need an account to run code.
// feature tour
run code
Write a Laravel snippet, choose a saved connection, and run it through the app it belongs to. Switch to Artisan mode when you need a normal command instead. The result shows the connection, exit code, duration, and output without making you jump back to a terminal.
connections
Save the places where your Laravel apps actually run: a local folder, a Laradock or Sail-style container, or a remote server over SSH. Each connection keeps its app path and environment label, so you can tell local, staging, and production apart before you run anything.
clean output
LaraBench renders common Laravel output as cards, tables, and expandable trees. Eloquent models become readable attribute cards, collections become tables, nested arrays stay explorable, and the raw text remains close by when you need it.
sql queries
When a snippet touches the database, LaraBench shows the executed queries beside the output. You can inspect bindings, timing, and connection details without adding temporary logging to your code.
query analysis
A run that fires fifty queries is hard to read one card at a time. LaraBench groups them for you: identical queries that ran more than once, query shapes that repeat with different arguments, and queries that took a meaningful share of the run. The Queries panel flags what it found, and the full breakdown opens in one click.
benchmark
Benchmark mode runs snippets repeatedly, supports warmups, and lets you compare two versions side by side. It is built for the everyday questions Laravel developers ask: which query shape is faster, which collection approach costs less, and whether an optimization changed anything.
tabs
Tabs keep multiple snippets, commands, and experiments open side by side. Each tab remembers its own mode, content, connection, and output, so checking one idea does not overwrite another.
saved work
Turn useful snippets and Artisan commands into a small personal toolkit. Save them locally, load them back into the runner, and reuse them the next time the same production question or cleanup task comes around.
history
Every run is kept in local history with its project context. Filter by project, reopen a past run, or save it as a reusable snippet when it turns out to be useful.
logs
Open the logs for the selected connection, filter by level, and search for the thing you are chasing. It keeps the debugging loop in one window: run the snippet, inspect the result, then check the log.
safety
LaraBench keeps the environment visible and asks for confirmation before production runs. If code looks like it may modify data, the warning gets stronger. Dry-run controls can roll back writes, avoid persisting inserts, updates, or deletes, and block schema changes.
mcp server
LaraBench can act as an MCP server, so an AI coding tool can see your connections, saved library, run history, and logs, and run Tinker snippets or Artisan commands in the real app context, without you copying anything back and forth. Reading is free on any plan; running code and saving to your library need Premium.
projects cockpit
Pick a local Laravel project and LaraBench reads its Composer and npm lockfiles, then tells you what is behind: major updates, minor updates, up to date, and packages it does not track. Click any package to read the release notes between your version and the latest, without opening a browser.
Download LaraBench, add a local project, Docker container, or SSH server, and run the first snippet against the app you already have.
latest release v1.0.12 · free · no account required