Skip to content

Commit b7da294

Browse files
authored
Merge pull request #10 from mikemand/patch-1
Fix exception when marking all as read
2 parents f6b6a76 + 0b224c1 commit b7da294

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Http/Controllers/Admin/NotificationsController.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ public function markAllAsRead()
5959
{
6060
$this->notification->markAllAsReadForUser($this->auth->id());
6161

62-
flash(trans('notification::messages.all notifications marked as read'));
63-
64-
return redirect()->route('admin.notification.notification.index');
62+
return redirect()->route('admin.notification.notification.index')
63+
->withSuccess(trans('notification::messages.all notifications marked as read'));
6564
}
6665
}

0 commit comments

Comments
 (0)