Sites
Each linked project is a site. Open Sites in the app to see them all; choose one to manage it.
Addresses#
A site called shop answers at:
https://shop.test, and- any subdomain, like
https://api.shop.testorhttps://tenant1.shop.test. They all reach the same app, so multi-tenant apps work without extra setup.
Requests for files that exist in public/ (CSS, JavaScript, images, storage links) are served directly. Everything else goes to Laravel's public/index.php, just like on a production server.
Aliases#
A site can answer at more names, for example shop-old.test next to shop.test. On the site's General tab, type the name under Aliases and press Add alias; press × next to an alias to remove it.
From a terminal:
burrow alias add shop-old shop # shop-old.test serves the shop site
burrow alias list # every site's aliases
burrow alias remove shop-old
Leave out the site name to use the site in the current folder. Subdomains such as admin.shop.test already work without an alias.
Proxies#
To serve something that isn't a Laravel site (a Node or Go server, a port published by Docker) at a .test name, add a proxy. Open Sites and use the Proxies panel below the list: enter a name and the local port, then press Add proxy. Or:
burrow proxy add api 3000 # https://api.test → 127.0.0.1:3000
burrow proxy list
burrow proxy remove api
The name gets the same trusted HTTPS as your sites, and WebSockets work too. Add --insecure to serve plain HTTP. If nothing is listening on the port, the page shows 502 Upstream not reachable; start your server and reload.
HTTPS#
Sites use HTTPS by default, with a certificate your browser trusts. Visiting http://shop.test redirects to https://.
To serve a site over plain HTTP instead, turn off HTTPS on the site's General tab, or link it with burrow link --insecure.
PHP version per site#
On the site's General tab, choose a PHP version, or leave it on Default to follow your default PHP (set on the PHP page). The change applies to the next request.
From a terminal:
burrow link --php 8.3 # when linking
A .php-version file in the project (for example 8.3) also selects the version for php and composer in your terminal and for the site's queue workers.
PHP settings per site#
Some apps need more memory or bigger uploads than Burrow's defaults. On the site's General tab, fill in PHP settings and press Save. Leave a field empty to keep the default.
| Setting | Default | What it changes |
|---|---|---|
memory_limit |
512M |
Memory one request may use. -1 means no limit. |
| Upload size | 100M |
upload_max_filesize and post_max_size together. |
max_execution_time |
60 |
Seconds one request may run (up to 86400). |
display_errors |
On | Show PHP errors in the page. |
From a terminal, in the project folder:
burrow ini # show the current values
burrow ini memory_limit=1G upload_max_filesize=200M
burrow ini memory_limit=default # back to the default
burrow ini --reset # clear every override
Settings apply to the site's web requests from the next request; nothing needs restarting. php in your terminal, artisan commands and queue workers keep using Burrow's php.ini.
Requests#
The Requests tab is a live log of what the site is serving. Open the site in your browser and each request appears at once, with the time, method, path, status code, kind (PHP, static, proxy, redirect or not-found) and how long it took to reply.
- Requests that take 500 ms or more are highlighted, and the slowest ones are listed under Slowest at the top.
- Type in the filter box to search by path, method or status, or choose PHP, Static files or Errors (4xx/5xx).
- Pause stops the list from scrolling while you read; Clear empties it.
- Click a
GETrequest to open it in your browser again.
Health#
The Health tab checks the site for the usual reasons a Laravel app doesn't start or behaves oddly, and offers a one-click fix where there is one:
| Check | Fix button |
|---|---|
No .env file |
Create .env from .env.example |
vendor/ is missing |
Run composer install |
APP_KEY is missing |
Generate a key |
APP_URL doesn't match the site's address |
Set APP_URL |
| Database, Redis or mail settings point at a Docker hostname | Point it at Burrow |
A port in .env doesn't match Burrow's service |
Use Burrow's port |
| A service the site uses isn't running | Start it |
| Pending migrations | Run migrate |
public/storage link is missing |
Run storage:link |
The PHP version doesn't satisfy composer.json |
Use PHP 8.x |
| Reverb settings don't point at the site | Point Reverb at the site |
Press Check again after changing things yourself; Show … passing checks lists what's fine. From a terminal: burrow health shop.
Artisan#
The Artisan tab runs one php artisan command at a time in the project, with the site's PHP, and shows its output live. Type the command after php artisan (for example migrate:status) and press Run, or use a shortcut button. Stop ends a long-running command, and recent commands are kept for reuse.
Commands run without prompts. For interactive ones like tinker, use a terminal:
burrow artisan --site shop tinker
The site's tabs#
| Tab | What it does |
|---|---|
| General | URL, folder, Laravel version, PHP version, aliases, PHP settings, Xdebug, HTTPS on/off, open in browser, unlink. |
| Health | Checks for common problems, with one-click fixes. See Health. |
| Environment | Edit the project's .env file. The previous version is kept as .env.burrow-backup each time you save. |
| Workers | Queue workers, the scheduler, Vite and Reverb for this site. See Queues, Vite & workers. |
| Artisan | Run php artisan commands with live output. See Artisan. |
| Dumps | Catch dump() and dd() output here instead of in the page. See Debugging. |
| Requests | A live log of requests, with slow ones highlighted. See Requests. |
| Logs | The latest lines of storage/logs/laravel.log, refreshed live, with a filter box. |
| Share | Put the site on a public link. See Share a site publicly. |
Unlinking#
Unlink (or burrow unlink shop) stops serving the site and stops its queue workers and scheduler. The project folder and its database are not touched.
Good to know#
- Responses from PHP are streamed as they're produced, so Server-Sent Events and
flush()output arrive as they happen.