A Toast notification library for the Laravel TALL stack. You can push notifications from the backend or frontend to render customizable toasts with almost zero footprint on the published CSS/JS 🔥🚀
'Danger' type notifications close directly after display.
While reading the source code I noticed that the parameters of the 'danger' method are not the same as for the others: the duration is missing.
// show notification from JS
Toast.danger('message', 'title');
// source code
...
window.Toast = {
...
warning (message, title = '', duration = undefined) {
this.component.add(this.make(message, title, 'warning', duration ?? this.component.defaultDuration));
},
// no duration
danger (message, title = '') {
// no defaultDuration
this.component.add(this.make(message, title, 'danger'));
}
}
Hi,
'Danger' type notifications close directly after display. While reading the source code I noticed that the parameters of the 'danger' method are not the same as for the others: the duration is missing.