Livewire Package Management

Breathtaking Photos and Facts About Livewire Package Management

Dependency Management

This document explains the dependency management system for the Laravel 12 + Livewire 4 application, detailing how Composer manages PHP packages , version constraints, and the complete dependency tree.

Beautiful view of Livewire Package Management
Livewire Package Management

To include Livewire components in a Laravel package , you'll need to register them in your package's service provider. For single-file (SFC) and multi-file (MFC) components, use addNamespace in your service provider's boot() method:

Beautiful view of Livewire Package Management
Livewire Package Management

You may manually register components using the Livewire::component method. This can be useful if you want to provide Livewire components from a composer package .

Visual Showcase