Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Ui Livewireflux Admin Laravel Package

vormiaphp/ui-livewireflux-admin

Laravel admin panel package for Vormia apps with Livewire 4 + Flux. Ships prebuilt routes, views, and Livewire components for managing categories, inheritance, locations, availability, and admin users, plus automatic sidebar integration and role assignment support.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

Architecture Fit

  • Pros:

    • Modular Admin Panel: Pre-built Livewire components for CRUD operations (categories, inheritance, locations, availability, admin users) align well with Laravel’s component-based architecture. The package leverages Livewire 4 + Flux 2, which is a modern, reactive stack for Laravel, reducing frontend boilerplate.
    • Vormia Ecosystem Integration: Designed for Vormia 5.4+, which suggests deep integration with its role/permission system, inheritance models, and location hierarchies. Ideal for applications requiring multi-tiered admin workflows (e.g., e-commerce, SaaS platforms).
    • Volt Templating: Uses Volt (bundled with Livewire 4), enabling cleaner Blade-like syntax for Livewire components, improving developer experience.
    • Flux UI Framework: Leverages Flux for sidebar navigation, dark/light mode, and responsive layouts, reducing custom UI development effort.
  • Cons:

    • Tight Coupling to Vormia: Heavy reliance on Vormia’s models (e.g., Vormia\Vormia\Models\Role) may limit flexibility if the project doesn’t use Vormia. Custom role/permission systems would require significant refactoring.
    • Livewire 4 Specificity: Volt is tightly coupled to Livewire 4; migrating to Livewire 3 or other frontend frameworks (e.g., Inertia.js) would require rewrites.
    • Opinionated Structure: Assumes a specific route (/admin), middleware (auth), and sidebar layout (flux:sidebar.group). Projects with custom architectures may need extensive overrides.

Integration Feasibility

  • Laravel Compatibility:
    • Supports Laravel 12/13 + PHP 8.2+, aligning with modern Laravel stacks.
    • Requires Fortify 1.34+ (for auth) and Flux 2.13.1+ (for UI). If the project uses older versions, upgrades may be necessary.
  • Dependency Overhead:
    • Pulls in Vormia, Livewire, Flux, and Fortify, adding ~50MB+ to vendor/. Justifyable if the admin panel is a core feature, but may be overkill for simple projects.
  • Database Schema:
    • Assumes Fortify’s user table structure (e.g., two_factor_secret, passkeys). Projects using custom auth (e.g., Sanctum, Passport) may need schema adjustments.
    • No migrations: The package doesn’t publish Fortify migrations by default, requiring manual steps (vendor:publish --tag=fortify-migrations).

Technical Risk

  • High Risk Areas:
    1. Vormia Dependency: If the project doesn’t use Vormia, integrating custom models (e.g., roles, inheritance) into the package’s Livewire components will be error-prone and require deep code understanding.
    2. Flux/Livewire Version Lock: Using Flux 2.13.1+ and Livewire 4.1+ may conflict with existing projects using older versions. Downgrading could break features.
    3. File Overwrites: The install command automatically copies files to app/ and resources/, risking data loss if conflicts occur. Manual backups are critical.
    4. Route/Sidebar Injection: Automatic injection of routes and sidebar items may fail if the project’s routes/web.php or sidebar layout deviates from the package’s assumptions.
  • Mitigation Strategies:
    • Pre-Integration Audit: Verify compatibility with existing:
      • Auth system (Fortify/Sanctum/Passport).
      • UI framework (Flux/other).
      • Database schema (user table, roles).
    • Staged Rollout: Test in a non-production environment first, focusing on:
      • Livewire component rendering.
      • Sidebar integration.
      • Role assignment workflows.
    • Customization Layer: Extend components (e.g., AdminPanel.php) via traits or mixins to avoid modifying package files directly.

Key Questions

  1. Does the project use Vormia?
    • If no, how will custom models (roles, inheritance) integrate with the package’s Livewire components?
  2. What auth system is in place?
    • Fortify? Sanctum? Passport? Conflicts may arise with Fortify’s assumptions (e.g., two_factor_secret column).
  3. Is Flux/Livewire 4 already in use?
    • If not, what’s the upgrade path, and will it break existing features?
  4. What’s the admin panel’s scope?
    • Is this a full replacement for existing admin logic, or a supplemental UI layer?
  5. How are roles/permissions managed?
    • Does the project need Vormia’s role system, or can it be adapted to a custom solution?
  6. What’s the deployment strategy?
    • Will the package be updated frequently? If so, how will customizations be preserved (e.g., backups, feature flags)?

Integration Approach

Stack Fit

  • Best For:
    • Laravel 12/13 projects needing a rapidly deployable admin panel with:
      • CRUD for hierarchical data (categories, locations).
      • Role-based access control (via Vormia).
      • Modern UI (Flux + Livewire 4).
    • SaaS platforms, e-commerce backends, or multi-tenant applications where admin workflows are complex but standardized.
  • Poor Fit:
    • Projects using non-Fortify auth (e.g., Passport, Sanctum) without schema adjustments.
    • Teams unfamiliar with Livewire/Flux (steep learning curve for customizations).
    • Applications requiring highly customized admin UIs (the package’s opinionated structure may limit flexibility).

Migration Path

  1. Preparation Phase:

    • Audit Dependencies:
      • Ensure laravel/fortify, livewire/livewire, and livewire/flux are within supported versions.
      • Check for conflicts with existing auth (e.g., two_factor_secret column).
    • Backup Critical Files:
      • routes/web.php, resources/views/layouts/app/sidebar.blade.php, and any custom AdminPanel components.
    • Schema Validation:
      • Run php artisan ui-livewireflux-admin:check-dependencies to verify compatibility.
  2. Installation:

    • Composer Install:
      composer require vormiaphp/ui-livewireflux-admin vormiaphp/vormia livewire/flux laravel/fortify
      
    • Run Installer:
      php artisan ui-livewireflux-admin:install
      
      • Handle Overwrites: Review prompts for file conflicts (e.g., AdminPanel.php).
    • Fortify Migrations (if needed):
      php artisan vendor:publish --tag=fortify-migrations
      php artisan migrate
      
  3. Configuration:

    • Routes: Verify injection into routes/web.php. If missing, manually add from vendor/vormiaphp/ui-livewireflux-admin/src/stubs/reference/routes-to-add.php.
    • Sidebar: Locate flux:sidebar.group in sidebar.blade.php and inject menu items.
    • Roles: Implement role assignment logic (e.g., in EventServiceProvider or registration controller).
  4. Testing:

    • Unit Tests: Test Livewire components in isolation (e.g., Admin/Categories CRUD).
    • Integration Tests: Verify:
      • Auth middleware protection.
      • Sidebar navigation.
      • Role-based visibility (e.g., hide "Admins" section for non-superusers).
    • UI Flow: Test dark/light mode, responsive layouts, and Flux interactions.

Compatibility

  • Laravel: ✅ 12/13 (PHP 8.2+).
  • Auth: ⚠️ Fortify 1.34+ (conflicts possible with other auth systems).
  • UI: ✅ Flux 2.13.1+ (Livewire 4.1+).
  • Database: ⚠️ Assumes Fortify’s user table schema (customize if using alternatives).
  • Vormia: ✅ Required for role/inheritance models (no workarounds for non-Vormia projects).

Sequencing

  1. Phase 1: Core Integration (1–2 weeks):
    • Install package, configure routes/sidebar, test basic CRUD.
    • Focus on categories/locations (highest priority for most projects).
  2. Phase 2: Customization (1–3 weeks):
    • Extend AdminPanel component for project-specific layouts.
    • Adapt Livewire components for custom models (if not using Vormia).
    • Implement role logic (e.g., middleware for admin-only routes).
  3. Phase 3: Polish (1 week):
    • UI tweaks (
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope