public function getLastNotification($toId, $category = null, Closure $filterScope = null) { $notification = $this->notification->entity($this->entity); if (is_null($category)) { return $notification->getLastNotification($toId, $filterScope); } return $notification->getLastNotificationByCategory($category, $toId, $filterScope); }