mckenziearts / laravel-notify

Flexible Flash notifications for Laravel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question about self-closing

Kacimi-Amine opened this issue · comments

hi ,
thank you for this awesome package,
please i wanted to know if there is a timer to add to have the self-closing of the alert ...

I plan to add it to the next release

it can be handled with something like this in the blade notification file:
x-init="setTimeout(() => { show = true }, 500);setTimeout(() => { show = false }, 5500)"

commented

it can be handled with something like this in the blade notification file:
x-init="setTimeout(() => { show = true }, 500);setTimeout(() => { show = false }, 5500)"

didn't work for me
i need to replace with <x:notify-messages /> ?

commented

I plan to add it to the next release

Waiting ... :)

I plan to add it to the next release

This would be great!

New version released last saturday. More detail here https://github.com/mckenziearts/laravel-notify/releases/tag/v2.2