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
Success
Error
Warning
Info
Persistent Toast
Persistent Toast
Clear All
PHP PHP Methods (Fluent)Method / Property Parameters Description $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 MethodsMethod / Property Parameters Description 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.