The ultimate mise en place for your next Laravel + Svelte project ๐
...and more!
# Clone the repository
git clone https://github.com/n00ki/larastart.git my-app
cd my-app
# Install PHP dependencies
composer install
# Install Node.js dependencies
bun install
# Setup environment variables
cp .env.example .env
# Edit .env with your configuration
# Generate application key
php artisan key:generate
# Setup database
touch database/database.sqlite
php artisan migrate
# Generate AI assistant guidelines (optional)
php artisan boost:install
# Build frontend (required once)
bun run build
# Start development environment
composer dev
# Standard development (all services)
composer dev
# Development with SSR
composer dev:ssr
# Check format & linting
composer lint
# Format and Lint code
composer fix
# Generate IDE helpers
composer annotate
# Run tests
composer test
app/
โโโ Actions/ # Business logic (Action pattern)
โ โโโ Fortify/ # Fortify authentication actions
โ โโโ User/ # User domain actions (profile, password, account)
โโโ Concerns/ # Reusable traits (validation rules, etc.)
โโโ Http/
โ โโโ Controllers/ # Thin controllers (delegate to Actions)
โ โโโ Middleware/ # Custom middleware
โ โโโ Requests/ # Form validation with custom messages
โ โโโ Responses/ # Custom response contracts (Fortify, etc.)
โ โโโ Auth/ # Login / logout / register response handling
โโโ Jobs/ # Queue jobs
โโโ Models/ # Eloquent models with typed properties
โโโ Policies/ # Authorization logic
โโโ Providers/ # Service providers
resources/
โโโ css/
โ โโโ app.css # Global CSS
โโโ js/
โโโ actions/ # Wayfinder-generated actions
โโโ components/ # Svelte components
โ โโโ ui/ # shadcn-svelte UI components
โโโ hooks/ # Svelte hooks (theme, utilities)
โโโ layouts/ # Page layouts (auth, app, settings)
โโโ lib/ # Utilities and state machines
โ โโโ state/ # Global state (class-based, *.svelte.ts)
โโโ pages/ # Inertia.js pages
โโโ routes/ # Wayfinder-generated routes
โโโ types/ # TypeScript type definitions
โโโ wayfinder/ # Wayfinder runtime setup
โโโ app.ts # Main entry point
โโโ ssr.ts # SSR entry point
tests/
โโโ Browser/ # Browser tests (end-to-end)
โโโ Feature/ # Feature tests
โโโ Unit/ # Unit tests
app/Http/Responses/Auth/*Response.phpInertia::flash() + centralized frontend handling in resources/js/layouts/base-layout.svelte# Run all tests
composer test
# Run specific test suites
composer test:unit # Unit tests only
composer test:feature # Feature tests only
composer test:browser # Browser tests only
composer test:types # PHPStan static analysis
composer test:type-coverage # 100% type coverage verification
composer test:all # All tests with coverage
This project uses Laravel Boost for AI guidance:
After updating packages, run php artisan boost:update to refresh AI guidelines.
Contributions are welcome! Feel free to submit a Pull Request.
Special thanks to all incredible contributors to the open-source community!
Built with โค๏ธ for the Laravel and Svelte communities