laravel-react-starter-kit maintained by rcrosbourne
Description
An opinionated Laravel 13 + React starter kit for Herd. Bun, Postgres, optional teams, 100% test coverage.
Last update
2026/04/25 18:20
(dev-dependabot/github_actions/actions/cache-5)
License
Downloads
5
rcrosbourne/laravel-react-starter-kit
An opinionated Laravel 13 + React starter kit for Herd. Bun, Postgres, optional teams, 100% test coverage.
Install
composer create-project rcrosbourne/laravel-react-starter-kit my-app
The post-install hook runs php artisan app:setup, which prompts for teams support and configures .env to match your project directory.
Pass --teams or --no-teams to skip the prompt for non-interactive setups.
What's different from laravel/react-starter-kit?
- bun-first —
bun.lock, no npm. - Postgres 17 for dev + test + CI. Test DB derived as
<DB_DATABASE>_test. - Herd-first — SMTP catcher on
127.0.0.1:2525, served athttp://<project>.test. - 100% test coverage gate (Pest line + type-coverage) enforced in CI.
- Strict static analysis — Pint + Rector + PHPStan max + Larastan with bleeding edge.
- Strict app defaults —
Model::shouldBeStrict(),Date::use(CarbonImmutable::class),DB::prohibitDestructiveCommands(isProduction). - AI guidelines generated by
laravel/boost(CLAUDE.md,AGENTS.md, etc.). - Optional teams — switcher, invites, owner/member roles, settings page.
Daily commands
| Command | What it does |
|---|---|
composer dev |
queue + pail + vite (Herd serves the app) |
composer test |
type-coverage + unit + lint + types (CI path, xdebug) |
composer test:coverage |
local coverage via Herd |
composer lint |
apply Rector + Pint + ESLint fixes |
composer test:lint |
dry-run lint check |
See docs/PHILOSOPHY.md for the opinions behind this kit.
License
MIT.