dutchcodingcompany/filament-developer-logins
filament/support v3.x). Risk: May conflict with custom auth providers or non-standard Filament setups.HasApiTokens (for Filament’s auth) or similar.Filament\Contracts\Auth\Access\Authorizable).| Risk Area | Severity | Mitigation |
|---|---|---|
| Filament Version Mismatch | High | Validate Filament version in composer.json or CI. Use filament/filament constraint. |
| Custom Auth Overrides | Medium | Document deviations from Filament’s default auth. Provide fallback hooks. |
| Performance (Large Teams) | Low | User list queries could be optimized with caching (e.g., remember() in blade). |
| Security Misconfiguration | Critical | Must restrict to APP_ENV=local. Add .env checks in package code. |
| Plugin Conflicts | Medium | Test with other Filament plugins (e.g., filament-spatie-laravel-permission). |
User model extend Filament\User or a custom class?tenant_id) that need filtering?APP_ENV in CI/CD? Can the package be auto-disabled in production?Primary Fit: Laravel + Filament v3.x applications with multi-role development needs.
Tech Stack Dependencies:
Pre-Integration:
composer show filament/filament).Filament\User or implements required traits.Installation:
composer require dutchcodingcompany/filament-developer-logins
php artisan filament-developer-logins:install
php artisan vendor:publish --tag="filament-developer-logins:config"
php artisan vendor:publish --tag="filament-developer-logins:assets"
Configuration:
.env to enable:
FILAMENT_DEVELOPER_LOGINS_ENABLED=true
config/filament-developer-logins.php to:
Testing:
/login (local only).| Component | Compatibility | Workaround |
|---|---|---|
| Filament v3.x | ✅ Full support | - |
| Custom Login Blade | ⚠️ May require overrides | Extend Login class or use @stack('developer-logins') in custom blade. |
| Sanctum/Passport | ⚠️ Limited (relies on Filament’s auth) | Use Filament’s built-in auth or patch package. |
| Large User Base | ⚠️ No pagination by default | Add ->take(50) to user query in DeveloperLoginsServiceProvider. |
| CI/CD Environments | ❌ Auto-enable in non-local envs is a risk | Add if (!app()->environment('local')) return; guard in service provider. |
Phase 1: Proof of Concept (1–2 days)
Phase 2: Customization (0–3 days)
Phase 3: Documentation (0.5 days)
Phase 4: Rollout (Immediate)
config/filament-developer-logins.php (easy to revert).FILAMENT_DEVELOPER_LOGINS_ENABLED and APP_ENV.HasApiTokens, Authorizable).storage/logs/laravel.log).debug:dump command for auth data.->where('is_active', true) or pagination in DeveloperLoginsServiceProvider.Cache::remember()).How can I help you explore Laravel packages today?