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

mickiy1's avatar

Laravel notification driver an pusher

Hello everyone, I am currently working on a project and i have completed two features so far the first is saving notification to the database and showing it to the user in the notification icon which requires reloading to get a new notification, with this code $notifications = auth()->user()->unreadNotifications @foreach($notifications as $notification) <h6 class="mb-0 text-sm"><a class="dropdown-item">

The second feature is making the notification real-time with pusher I managed to console log a message when some event is triggered

My question is how can i integrate the two how can i add the new notification in front end with out a page being refreshed i also need to update notification counter, i hope my question was clear

0 likes
4 replies
mickiy1's avatar

@pkboom Thank You but it requires a subscription which I can't afford to do, can you kindly recommend a free alternative

mickiy1's avatar

@Sinnbeck sorry I didn't clarify I was talking about the course @pkboom suggested, to get all of the videos it requires a subscription

Please or to participate in this conversation.