A batteries-included starter template for Laravel applications: authentication, role-based access control, a CMS management area, activity logging, and media handling — all wired up and fully tested.
Built with a strict, opinionated architecture (DTOs, Action classes, strict types, and mandatory tests) so every feature you add stays consistent. See docs/architecture.md before writing code.
- PHP 8.4 · Laravel 13
- Livewire 4 (MFC single-file components) · Livewire Flux (UI)
- Laravel Folio (file-based routing) · Laravel Fortify (auth backend)
- Pest 5 (with the TIA test-impact engine) · Pint (strict-types enforced)
- Tailwind CSS 4 · Vite · npm
- PHP >= 8.4
- Composer 2.x
- Node.js >= 20 with npm
git clone <your-repo-url>
cd template-laravel-livewire
cp .env.example .env
composer install
php artisan key:generate
php artisan storage:link
php artisan migrate --seed
npm install
npm run buildThen start the local dev stack (server, queue, logs, and Vite in one command):
composer run devcomposer run dev delegates to php artisan dev, which auto-detects your Node package manager from the lockfile (this template ships with package-lock.json, so it uses npm).
composer test # Pint + config:clear + full suite
php artisan test --compact # full suite only
vendor/bin/pest --tia # re-run only tests affected by your changes
vendor/bin/pest --tia --fresh # re-record the dependency graph baseline- Architecture & conventions — DTOs, Action classes, strict types, and the testing contract every feature must follow.
- Authentication
- RBAC (roles & permissions)
- CMS management
- Activity log
- Media library
- Changelog — keep this updated as you build on top of the template.
Documentation: https://boost.laravel.com/installed
./vendor/bin/tweakflux apply {theme?}Docs: https://tweakflux.com