adding example for notification

This commit is contained in:
Geriano
2022-07-29 14:16:01 +07:00
parent 8ab313da50
commit c7ff791eb6
2 changed files with 81 additions and 0 deletions

View File

@@ -13,6 +13,12 @@ const self = getCurrentInstance()
const open = ref(window.innerWidth > 669)
onMounted(() => window.addEventListener('resize', () => open.value = window.innerWidth > 669))
const { user } = usePage().props.value
Echo.private(`App.Models.User.${user.id}`)
.notification(notification => {
console.log(notification)
})
</script>
<style>