Repository navigation
Getting started
Everything you need to run Laravel Boilerplate on your machine, with or without Docker.
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
You need Docker with Compose v2, and make.
make setupThis 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 setupOn 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.
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.
- Copy
.env.exampleto.env. - Set the database. For SQLite:
DB_CONNECTION=sqlite, remove the otherDB_*lines and create an emptydatabase/database.sqlite. - Set
APP_URL=http://localhost:8080. Without a local mail server, setMAIL_MAILER=log: mails are written tostorage/logs. - Install and start:
composer setup
composer devOpen http://localhost:8080.
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 | 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).
docker compose exec laravel-env php artisan app:doctorIt lists what is missing or unsafe, and how to fix each. Administrators see the same list on the dashboard. Something else wrong? See Troubleshooting.
- Admin screens: generate your first screen
- Areas and Home: what users see after signing in
- Accounts and sign-in: registration, social login, two-factor, passkeys
- Roles and permissions: who may do what
Laravel Boilerplate
Project home | Laravel documentation | Labs64 NetLicensing | NetLicensing API