Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Xation's avatar

Laravel Echo don't return notification created_at date

Hi,

I use actuelement laravel echo with notification.

Echo.private('App.User.' + window.Laravel.userId).notification((notification) => {
    commit('addNewNotif', data)
})

The problem is that in the data var, I don't get the created_at but only the id, the type and the data. How to add the created_at ?

0 likes
0 replies

Please or to participate in this conversation.