laravel/jetstream
Laravel Jetstream is a starter kit for Laravel 11.x and earlier, providing a ready-made application foundation with common auth and account features. For newer starter kits, see https://laravel.com/starter-kits.
Laravel Jetstream is a highly opinionated, full-stack scaffolding solution designed for Laravel applications, offering pre-built authentication, user profiles, teams (optional), and API support. It leverages:
Fit for:
Misalignment for:
| Aspect | Feasibility | Notes |
|---|---|---|
| Laravel Compatibility | High | Supports Laravel 10–13 (v5.x). Laravel 11+ is the focus (README warning about prior versions). |
| Tech Stack Fit | High | Native PHP/Laravel, Livewire/Inertia, Tailwind, Vite. |
| Database Migrations | Medium | Includes migrations for users, teams, sessions, etc. Risk: May conflict with existing schemas. |
| Testing | High | Pest/PHPUnit integration; test stubs provided. |
| API Support | Medium | Optional API stack (v5.x makes it optional during install). |
| Customization | Medium-High | Override views, policies, and logic via publishable assets. |
Key Dependencies:
| Risk Area | Severity | Mitigation |
|---|---|---|
| Migration Conflicts | High | Review existing DB schema; use --force cautiously or merge migrations manually. |
| Livewire/Inertia Overhead | Medium | Adds ~500MB to vendor dir; may impact CI/CD build times. |
| Team Feature Bloat | Medium | Optional but adds complexity (models, policies, migrations). |
| Tailwind Dependency | Low | Can be ejected, but requires manual CSS replacement. |
| API Stack Coupling | Medium | API routes/views are tightly integrated; pruning may break features. |
| Deprecation Risk | Low | Actively maintained (releases every 1–2 months); Laravel 11+ focus. |
Critical Questions for TPM:
UpdateUserProfileInformation).Jetstream is optimized for the Laravel ecosystem with the following stack alignment:
Non-Native Stacks:
composer require laravel/jetstream
php artisan jetstream:install livewire # or inertia
php artisan migrate
php artisan vendor:publish --tag=jetstream-stubs.resources/views/vendor/jetstream.app/Policies or app/Http/Requests.Auth::routes()) with Jetstream’s middleware.Schema::hasTable() checks to avoid conflicts.--api flag (v5.x+):
php artisan jetstream:install api
/sanctum/csrf-cookie, /user-profile) alongside existing frontend.| Compatibility Check | Pass/Fail | Notes |
|---|---|---|
| Laravel 13.x | Pass | Tested in v5.5.0+. |
| PHP 8.5 | Pass | Supported since v5.4.0. |
| Tailwind CSS 3.x | Pass | Core dependency. |
| Livewire 3.x | Pass | Required for Livewire stack. |
| Inertia.js 2.x | Pass | Required for Inertia stack. |
| Sanctum/Passport | Partial | API stack uses Sanctum; Passport requires custom integration. |
| Custom Database Schema | Fail | High risk of migration conflicts. |
| Non-Tailwind CSS | Partial | Possible but requires manual overrides. |
| Monolithic Auth Middleware | Fail | Jetstream enforces its own middleware (e.g., EnsureEmailIsVerified). |
Recommended Rollout Order:
Anti-Patterns:
| Aspect | Impact | Details |
|---|---|---|
| Vendor Updates | High | Frequent Laravel/Jetstream updates may require testing (e.g., Livewire, Tailwind). |
| Dependency Bloat | Medium | ~500MB vendor size; Node.js dependencies (Vite, Tailwind). |
| Customization Effort | Medium | Overriding Jetstream’s logic requires familiarity with its architecture. |
| Debugging Complexity | Medium | Livewire/Inertia adds layers (e.g., server-side reactivity, Inertia page props). |
**
How can I help you explore Laravel packages today?