Download the PHP package adultdate/filament-auth-designer without Composer
On this page you can find all versions of the php package adultdate/filament-auth-designer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download adultdate/filament-auth-designer
More information about adultdate/filament-auth-designer
Files in adultdate/filament-auth-designer
Package filament-auth-designer
Short Description Transform Filament's default auth pages into stunning, brand-ready experiences
License MIT
Homepage https://github.com/caresome/filament-auth-designer
Informations about the package filament-auth-designer
Filament Auth Designer
Transform Filament's default authentication pages into stunning, brand-ready experiences with customizable layouts, media backgrounds, and theme switching.
Note: This package is designed exclusively for Filament v4. For changes and updates, see the CHANGELOG.
Table of Contents
- Features
- Requirements
- Installation
- Quick Start
- Media Positioning
- Global Defaults
- Custom Page Classes
- Media Configuration
- Theme Toggle
- Configuration Examples
- Render Hooks
- Troubleshooting
- Testing
- License
Features
- 🎨 Flexible Media Positioning - Place media on any side (Left, Right, Top, Bottom) or as a fullscreen cover
- 📐 Custom Sizing - Set media size with any CSS unit (%, px, vh, etc.)
- 🖼️ Media Backgrounds - Support for both images and videos with auto-detection
- 🌫️ Blur Effects - Configurable blur intensity (0-20) for Cover position
- 🌓 Theme Toggle - Built-in light/dark/system theme switcher
- 📍 Positionable Theme Toggle - Place theme switcher in any corner
- 🔧 Global Defaults - Set defaults that apply to all auth pages
- 🎯 Per-Page Overrides - Override defaults for specific pages
- 🔌 Custom Page Classes - Use your own page classes with the plugin's layouts
- 🪝 Render Hooks - Inject custom content at specific positions in layouts
- ♿ Accessibility - Alt text support for media
- 🚪 Email Verification Logout - Easy account switching from verification page
- ⚡ Zero Configuration - Works out of the box with sensible defaults
Requirements
- PHP 8.2+
- Laravel 11.0 or 12.0
- Filament 4.0
Installation
Quick Start
Add to your Panel Provider (e.g., app/Providers/Filament/AdminPanelProvider.php):
Media Positioning
Use MediaPosition to control where your media appears:
| Position | Description | Size Applied As |
|---|---|---|
| Left | Media on left, form on right | Width |
| Right | Media on right, form on left | Width |
| Top | Media at top, form below | Height |
| Bottom | Media at bottom, form above | Height |
| Cover | Fullscreen background with centered form | Ignored |
Default Behavior
- No media → Minimal centered form
- Media without position → Defaults to
Cover - Cover position →
mediaSize()is ignored (fullscreen)
Position Examples
Left Position (Split-style)
Right Position
Top Position (Banner-style)
Bottom Position
Cover Position (Overlay-style)
Size Units
Use any valid CSS unit for mediaSize():
Global Defaults
Set defaults that apply to all auth pages, then override specific pages as needed:
Custom Page Classes
Use your own custom auth page classes while keeping the plugin's layout features. This is useful when you need to customize the form (e.g., using username instead of email).
Option 1: Extend the Plugin's Page
Option 2: Use the Trait Directly
Media Configuration
Images
Supported formats: .jpg, .jpeg, .png, .webp, .gif, .svg, .avif
Videos
Supported formats: .mp4, .webm, .mov, .ogg
Videos auto-play, loop continuously, and are muted by default.
https://github.com/user-attachments/assets/154006f8-91b6-4e6e-9ed9-854442fe6a49
Alt Text (Accessibility)
Theme Toggle
Enable light/dark/system theme switcher:
You can position the theme switcher anywhere on the screen by passing top, bottom, left, or right CSS values. Defaults to auto if not specified.
You can also override the theme switcher position for specific pages:
Configuration Examples
Simple - Same Layout for All Pages
Advanced - Different Layout Per Page
Available Methods
| Method | Description |
|---|---|
->defaults() |
Set global defaults for all pages |
->login() |
Configure login page |
->registration() |
Configure registration page |
->passwordReset() |
Configure password reset pages |
->emailVerification() |
Configure email verification page |
->profile() |
Configure profile page |
->themeToggle() |
Enable theme switcher (defaults to top-right, customizable) |
Configuration Options
| Option | Description | Notes |
|---|---|---|
->media() |
Set background image/video URL | First param is URL, second is alt text |
->mediaPosition() |
Set media position | Left, Right, Top, Bottom, Cover |
->mediaSize() |
Set media size | px/vh/rem; ignored for Cover |
->blur() |
Blur intensity (0-20) | Applies to all positions |
->usingPage() |
Use custom page class | For custom auth pages |
->themeToggle() |
Set theme switcher position | Per-page override |
Render Hooks
Inject custom Blade content at specific positions within auth layouts:
Available Hook Positions
Note:
CardBeforeandCardAfterare specific to the Cover layout where the form is inside a card. For other layouts (Left, Right, etc.), where the form is not inside a card, use Filament's native render hooks:
PanelsRenderHook::AUTH_LOGIN_FORM_BEFOREPanelsRenderHook::AUTH_LOGIN_FORM_AFTER
| Hook | Description | Available In |
|---|---|---|
MediaOverlay |
Overlay content on top of media | All layouts with media |
CardBefore |
Above the login card | Cover position only |
CardAfter |
Below the login card | Cover position only |
Hook Examples
Add branding above the login card (Cover position):
Add company logo overlay on media:
Multiple hooks at the same position:
Troubleshooting
Images not displaying:
- Verify asset path:
asset('path/to/image.jpg') - Ensure files are in
public/directory - Clear cache:
php artisan cache:clear - Check browser console for 404 errors
Layout not applying:
- Clear view cache:
php artisan view:clear - Verify enum usage:
MediaPosition::Cover(not string) - Check plugin is registered in panel provider
Videos not auto-playing:
- Ensure format is supported (mp4, webm, mov, ogg)
- Check browser autoplay policies
- Test in different browsers
Blur effect not working:
- Value must be between 0-20
- Some older browsers may not support backdrop-filter
Custom page not using layout:
- Ensure your custom page uses
HasAuthDesignerLayouttrait - Or extend the plugin's page class
- Verify you're using
->usingPage()in the config
Media size not applying:
mediaSize()is ignored forCoverposition- Ensure you're using a valid CSS unit
Testing
License
The MIT License (MIT). Please see License File for more information.
All versions of filament-auth-designer with dependencies
filament/filament Version ^4.0
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^11.0||^12.0