Download Latest Version v4.1.0 source code.tar.gz (16.7 kB)
Email in envelope

Get an email when there's a new version of Livewire Alert

Home / v4.1.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-04-04 2.2 kB
v4.1.0 source code.tar.gz 2026-04-04 16.7 kB
v4.1.0 source code.zip 2026-04-04 26.5 kB
Totals: 3 Items   45.3 kB 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 bar
  • asToast() - 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 alert
  • reverseButtons() - 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()
Source: README.md, updated 2026-04-04