v4.1.0
Bug Fixes
- Fixed Livewire 4 compatibility - Resolved MethodNotFoundException: Public method [toJSON] not found on component when using the package with Livewire 4. The
root cause was$wire.call()not being handled correctly by Livewire 4's $wire proxy. It now uses$wire[action]()which works on both Livewire 3 and 4.
(#181)
New Methods
timerProgressBar()- Show a visual countdown progress barasToast()- Ready-to-use toast preset (top-end, timer from config, progress bar enabled)customClass(array $classes)- Apply custom CSS classes to any part of the alertreverseButtons()- Swap confirm and cancel button positions
Input Methods
Dedicated methods for collecting user input directly within an alert:
withTextInput(),withEmailInput(),withPasswordInput(),withNumberInput(),withTextareaInput()withSelectInput(),withRadioInput(),withCheckboxInput(),withFileInput()