agenticmorf/fluxui-avatar
Drop-in avatar manager for Laravel 11 + Livewire 4 + Flux UI. Automatically displays the authenticated user’s avatar in <flux:avatar />, includes a ready-to-use upload component, validation, and storage via filesystem disk or Spatie Media Library—no starter-kit edits required.
<flux:avatar> component without modifying the starter kit. This reduces merge conflicts and simplifies upgrades.AvatarStorageInterface), enabling easy extension for custom storage (e.g., S3, database BLOBs).boot() for DI, no #[LivewireProperty] annotations).avatar_path column to the users table, while the Spatie driver requires spatie/laravel-medialibrary and model trait updates. These are straightforward but must be planned during migration.fluxui-avatar.php) simplifies environment-specific adjustments (e.g., storage driver, validation rules).@include('flux::avatar.index').HasMedia, InteractsWithMedia). Teams unfamiliar with Spatie Media Library may face setup hurdles.boot()-based DI might need training to debug or extend the package.singleFile() behavior)?avatar_path column to users table via migration.spatie/laravel-medialibrary, publish migrations, and update the User model.php artisan vendor:publish --tag=fluxui-avatar-config) and set driver, disk, and validation rules in config/fluxui-avatar.php.<livewire:avatar-manager /> to the profile page.<flux:avatar /> auto-updates in headers/other views (no code changes needed).spatie/laravel-medialibrary (if used) is compatible with the Laravel version.Media::whereNotIn('id', ...)->delete()).fluxui-avatar.php) simplifies environment parity but requires discipline to avoid hardcoding values.spatie/laravel-medialibrary (if used) stays updated for security patches.accepted_types, max_file_size, and server storage permissions.flux namespace.| Scenario | Impact | Mitigation |
|---|---|---|
| Storage permission errors | Uploads fail silently | Set correct permissions on storage directory. |
| Database connection issues | Spatie driver fails | Implement retries or fallback to disk driver. |
| Livewire session timeouts | Uploads interrupt | Increase livewire.max_upload_size and |
How can I help you explore Laravel packages today?