Skip to content

Instantly share code, notes, and snippets.

@jasonlbeggs
Created March 5, 2021 23:08
Show Gist options
  • Save jasonlbeggs/450b2e907e5860239c3d2fdf876d00c9 to your computer and use it in GitHub Desktop.
Save jasonlbeggs/450b2e907e5860239c3d2fdf876d00c9 to your computer and use it in GitHub Desktop.

Livewire make, move, copy, and delete commands

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment