Toaster

Toast notification system with auto-dismiss, multiple positions, and a full-width banner mode. The global appToaster is typically rendered in the shared layout.

Toast Types

Persistent Toast

PHP

PHP PHP Methods (Fluent)

Method / PropertyParametersDescription
$m->toaster($id)stringCreate a toaster container.
->position($pos)stringPosition: top-right, top-left, bottom-right, bottom-left, banner.
->initial($message, $type)string, stringAdd a server-rendered initial message (banner mode). Type: success, error, warning, info.

JS JS Methods

Method / PropertyParametersDescription
m.toaster(id, opts)string, ?objectGet or create toaster instance.
show(message, type, opts)string, string, ?objectShow a toast. Type: success, error, warning, info. Options: {duration: 5000}.
clearAll()Remove all active toasts.
hide(toastElement)HTMLElementHide a specific toast.