caresome/filament-auth-designer
config/filament-auth-designer.php), which is idiomatic for Laravel packages. This reduces hardcoding and allows for environment-specific customization (e.g., staging vs. production branding).resources/views/vendor/filament/auth/, requiring minimal template overrides.| Risk Area | Assessment | Mitigation Strategy |
|---|---|---|
| Filament Version Lock | Hard dependency on Filament v4/v5. Upgrades may break if Filament changes auth view structure. | Monitor Filament’s release notes for auth view changes. Use composer require with version constraints (e.g., `^4.0 |
| CSS Conflicts | Custom Tailwind classes may clash with existing app styles. | Scope package styles to .filament-auth-designer-* classes. Use !important sparingly. |
| Performance Overhead | Video backgrounds or high-res images may impact load times. | Lazy-load media; use srcset for responsive images. Configure via media_config. |
| Theme Toggle Complexity | Dynamic theme switching may require JS if using localStorage. | Use Filament’s built-in useTheme hook or package-provided JS. Test in IE11 if legacy support is needed. |
| Localization | Auth text (e.g., "Login") is static; may need translation. | Override Blade templates for localization. Use Filament’s trans() helper. |
Filament Version Strategy:
filament/filament:^5.0 in a staging environment.Branding Requirements:
Auth Flow Customization:
app/Providers/FilamentServiceProvider.php for auth view overrides.CI/CD Impact:
filament-auth-designer to composer.json and test in CI.Accessibility (a11y):
tailwind.config.js or inline classes.login, register, forgot-password, reset-password) via resources/views/vendor/filament/auth/..filament-auth-designer-cover).public/images/auth-bg.jpg) or URLs (e.g., https://cdn.example.com/video.mp4).Pre-Integration Checklist:
composer show filament/filament).resources/views/vendor/filament/auth/ templates.Installation:
composer require caresome/filament-auth-designer
php artisan vendor:publish --provider="Caresome\FilamentAuthDesigner\FilamentAuthDesignerServiceProvider" --tag="config"
php artisan vendor:publish --provider="Caresome\FilamentAuthDesigner\FilamentAuthDesignerServiceProvider" --tag="views"
config/filament-auth-designer.php) and views (resources/views/vendor/filament/auth/).Configuration:
config/filament-auth-designer.php for:
background_image, background_video).enable_theme_toggle, themes array).pages.login.media_position = "cover").'pages' => [
'login' => [
'media_position' => 'right',
'media_size' => '40%',
'background_image' => 'images/auth/login-bg.jpg',
],
],
Customization:
resources/views/vendor/filament/auth/login.blade.php) for custom logic.resources/css/filament/auth.css:
@layer filament.components {
.filament-auth-designer-cover {
@apply bg-[url('/images/custom-bg.jpg')];
}
}
resources/js/filament/auth.js:
document.addEventListener('filament-auth-designer:theme-changed', (e) => {
console.log('Theme changed to:', e.detail.theme);
});
Testing:
| Component | Compatibility Notes |
|---|---|
| Filament v4/v5 | Tested explicitly; v5 may require adjustments if Filament changes auth view structure. |
| Laravel 10/11 | No direct Laravel core changes; depends on Filament’s Laravel compatibility. |
| Tailwind CSS | Uses Tailwind v3+ (default in Filament). Customize via tailwind.config.js. |
| Custom Auth | If using filament-auth with custom providers, ensure Blade templates are not overridden. |
| Multi-Tenant | Configure per-tenant via config/filament-auth-designer.php or dynamic Blade logic. |
Phase 1: Proof of Concept (1–2 days)
Phase 2: Customization (3–5 days)
Phase 3: Deployment (1 day)
**Phase 4: Optimization (Ongo
How can I help you explore Laravel packages today?