In addition to the livewire:make
command, Livewire includes move
, copy
, and delete
commands to make managing components really easy! These will move, copy, or delete the component class and Blade files all at once.
# Move the Foo component to Bar/Baz
php artisan livewire:move foo bar.baz
# Copy the Foo component to a new component named Bar
php artisan livewire:move foo bar
# Delete the Foo component
php artisan livewire:delete foo
Browse the other commands Livewire provides here.