Skip to content

Commit

Permalink
Merge pull request #10 from mikemand/patch-1
Browse files Browse the repository at this point in the history
Fix exception when marking all as read
  • Loading branch information
nWidart authored Jan 15, 2018
2 parents f6b6a76 + 0b224c1 commit b7da294
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Http/Controllers/Admin/NotificationsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ public function markAllAsRead()
{
$this->notification->markAllAsReadForUser($this->auth->id());

flash(trans('notification::messages.all notifications marked as read'));

return redirect()->route('admin.notification.notification.index');
return redirect()->route('admin.notification.notification.index')
->withSuccess(trans('notification::messages.all notifications marked as read'));
}
}

0 comments on commit b7da294

Please sign in to comment.