Skip to content

Getting started

Alexey Averikhin edited this page Dec 4, 2026 · 1 revision

Everything you need to run Laravel Boilerplate on your machine, with or without Docker.

Start a project

Pick one:

  • Your own project on GitHub: press Use this template on the repository and clone your copy.
  • Your own project without GitHub: composer create-project labs64/laravel-boilerplate my-app
  • Just try it: git clone https://github.com/Labs64/laravel-boilerplate.git

With Docker (recommended)

You need Docker with Compose v2, and make.

make setup

This builds the containers, installs PHP and Node packages, creates the database with sample data, builds the assets and runs the tests. Then open http://localhost.

Service Address
Application http://localhost
Mailpit (catches every email the application sends) http://localhost:8025
phpMyAdmin http://localhost:8080
MariaDB localhost:3306, user root, password secret

A port already taken? Set APP_PORT, FORWARD_DB_PORT, VITE_PORT, FORWARD_MAIL_PORT, FORWARD_MAILPIT_PORT or FORWARD_PMA_PORT in .env. With APP_PORT, add the port to APP_URL too.

Without make:

cp .env.example .env
export HOST_UID=$(id -u) HOST_GID=$(id -g)
docker compose up -d --build --wait
docker compose exec laravel-env composer setup

On Linux, keep the export line if your user ID isn't 1000, so that files written in the container belong to you.

More commands: Docker useful commands.

Without Docker

You need PHP 8.4+ (with intl, mbstring, xml, zip, curl, bcmath and your database driver), Composer 2, Node.js 22.12+ and MariaDB, MySQL, PostgreSQL or SQLite.

  1. Copy .env.example to .env.
  2. Set the database. For SQLite: DB_CONNECTION=sqlite, remove the other DB_* lines and create an empty database/database.sqlite.
  3. Set APP_URL=http://localhost:8080. Without a local mail server, set MAIL_MAILER=log: mails are written to storage/logs.
  4. Install and start:
composer setup
composer dev

Open http://localhost:8080.

Sample accounts

make setup creates three accounts. The sign-in page lists them in a local installation (SHOW_SAMPLE_USERS), so one click signs you in.

Account Email Password Sees
Administrator admin.laravel@local.local admin Everything
Manager manager.laravel@local.local manager Users, announcements, dashboard, activity; not roles or logs
Member demo.laravel@local.local demo Home and the areas

They have public passwords: they are never created in production (see Going to production).

Check the installation

docker compose exec laravel-env php artisan app:doctor

It lists what is missing or unsafe, and how to fix each. Administrators see the same list on the dashboard. Something else wrong? See Troubleshooting.

Next

Clone this wiki locally