Your first site
There are two ways to get a site: link a Laravel project you already have, or let Burrow create a new one.
Link an existing project#
In the app, open Sites and choose Link existing app, then pick the project folder (the one with artisan in it).
Or in a terminal:
cd ~/Code/shop && burrow link
That's it: open https://shop.test. The site name comes from the folder name; choose another with burrow link my-shop. Pin a PHP version at the same time with --php 8.4.
Create a new Laravel app#
Open New Site in the app and choose:
- Name and folder: the app is created in that folder and served at
https://<name>.test. - Starter kit: none (Blade and Tailwind), React, Vue, Svelte, Livewire, or Livewire with class components.
- Authentication: Laravel's built-in, WorkOS, or none (for starter kits).
- Testing: Pest or PHPUnit.
- Database: MySQL, PostgreSQL or SQLite.
- PHP version, and whether to install and build frontend assets with npm.
Burrow creates the app, links it, creates its database, writes the database settings into .env and runs the migrations. You can follow every step in the job log.
Connect your app to a database#
If you linked an existing app, point its .env at Burrow's database. The Services page shows the exact lines for each service, ready to copy. From a terminal:
burrow db create shop && burrow service env mysql --database shop
burrow service env prints lines like these for your .env:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=shop
DB_USERNAME=root
DB_PASSWORD=
Then run your migrations as usual: php artisan migrate.
Next#
- Sites: HTTPS, PHP per site, editing
.envand reading logs. - Queues & scheduler: run your jobs in the background.