filament-jetstream:install command (handles migrations, models, and routes).vendor:publish) and model trait additions (e.g., InteractsWithProfile, HasApiTokens).registerRoutes changes in v4.8.0 required updates). Risk of breaking changes if Filament evolves rapidly.teams or passkeys tables).filament/forms, filament/tables).| Scenario | Steps | Tools/Commands |
|---|---|---|
| New Laravel Project | 1. Install Filament + package. 2. Run php artisan filament-jetstream:install --teams --api. 3. Configure JetstreamPlugin in AppServiceProvider. 4. Migrate database. |
composer require, php artisan commands, migrate |
| Existing Project | 1. Publish migrations (vendor:publish). 2. Add traits to User model (e.g., InteractsWithProfile). 3. Merge custom auth logic. 4. Update routes/navigation. |
php artisan vendor:publish, manual model edits, route: commands |
| Feature-Specific | - Teams: Publish filament-jetstream-team-migration. - API: Add HasApiTokens. - 2FA: Publish filament-two-factor-authentication-migrations. |
Tagged vendor:publish commands |
User model fields may clash with package migrations.JetstreamPlugin in AppServiceProvider (e.g., disable features via condition closures).composer why-not to track dependency conflicts.vendor:publish --tag=filament-jetstream-views).php artisan migrate:fresh).config/filament.php).two_factor_secret column in users table).php artisan filament:debug (if Filament provides it).tinker for auth model inspection.HasTenants caching).personal_access_tokens table growth.Cache::remember).| Risk | Impact | Mitigation |
|---|---|---|
| Migration conflicts | Data loss or corruption. | Backup DB before migrations; test in staging. |
| Filament version incompatibility | Broken UI or runtime errors. | Pin Filament version in composer.json; test updates in CI. |
| Auth logic conflicts | Custom gates/policies override package behavior. | Isolate custom auth logic; use Filament’s Gate system. |
| Team/API feature bugs | Inconsistent state (e.g., orphaned team invitations). | Implement rollback procedures; monitor failed_jobs table. |
| Passkey authentication failures | Users locked out if passkey setup fails. | Provide fallback to TOTP; log errors in filament-jetstream namespace. |
| Rate limiting (API tokens) | Token abuse or DoS. | Configure Sanctum’s throttle middleware; use filament-jetstream token permissions. |
Resource/Page system; Laravel auth.filament-jetstream views).How can I help you explore Laravel packages today?