Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
PhiloNL authored Jul 31, 2023
1 parent b1a2352 commit 4cfdcc5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ This is the readme for the BETA version of the package for Livewire v3. **If you
### Upgrading

You can use the following command to automate the upgrade process:

```shell
php artisan livewire:upgrade --run-only wire-elements-modal-upgrade
```
Expand All @@ -30,6 +31,19 @@ Please review the changes and ensure they follow the new convention set by Livew
<button wire:click="$dispatch('openModal', {component: 'edit-user', arguments: {user: 5}})">Edit User</button>
```

The old component name is being deprecated. Replace `@livewire('livewire-ui-modal')` with `@livewire('wire-elements-modal')`.

The config file has been renamed as well. If you've published the config in the past, you will have to do so again and make the necessary changes:

```shell
php artisan vendor:publish --tag=wire-elements-modal-config
```

After upgrading, make sure to clear your view cache:

```shell
php artisan view:clear
```

## About Wire Elements Modal
Wire Elements Modal is a Livewire component that provides you with a modal that supports multiple child modals while maintaining state.
Expand Down

0 comments on commit 4cfdcc5

Please sign in to comment.