Skip to main content

Module commands

Module commands 

Source
Expand description

The console commands the package registers, starting with make:livewire.

The generator writes Rust, not PHP: a component is a module whose struct derives LivewireComponent and whose implementation carries #[livewire::component]. The view is either inline in the module or a sibling .livewire template.

Structs§

ConfigureS3UploadCleanup
Reports whether the temporary upload disk needs a bucket lifecycle, which only an S3 disk has.
Convert
Moves a component between its single-file and module-and-view forms.
ConvertPlan
What livewire:convert changes.
Layout
Writes a layout a page component can render inside.
LivewireConfigCommand
Prints the Livewire configuration the application resolved.
LivewireMake
Creates a component, called by the livewire:make alias.
MakeLivewire
Creates a component module, and the view it renders.
Options
What the generator should write.
Planned
One file the generator writes.
Publish
Publishes the runtime, so the application serves it from public/.
Stubs
Writes the stubs make:livewire copies, so an application can change them.

Functions§

plan
The files name needs, and their contents.
plan_convert
The conversion name needs, in whichever direction it is written today.
plan_layout
The files livewire:layout writes.
plan_publish
The files livewire:publish writes: the runtime, from the copy embedded in this crate.
plan_stubs
The stubs livewire:stubs writes, which make:livewire then copies.
write
Writes the planned files, refusing to replace one that exists unless force is set.