This might help you: https://laracasts.com/series/get-real-with-laravel-echo
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
Please or to participate in this conversation.