Method |
Description |
|
countNotRead ( $toId, $entity, Closur\Closure $filterScope = null ) : mixed |
get number Notifications
not read. |
|
delete ( $notificationId ) : boolean |
Delete a notification giving the id
of it. |
|
deleteAll ( $toId, $entity ) : boolean |
Delete All notifications about the
current user. |
|
deleteByCategory ( $categoryName, $expired = false ) : boolean |
Delete All notifications from a
defined category. |
|
deleteLimit ( $userId, $entity, $number, $order ) : integer |
Delete numbers of notifications equals
to the number passing as 2 parameter of
the current user. |
|
find ( $notificationId ) : Illuminate\Database\Eloquent\Collection | Model | static |
Find notification by id. |
|
getAll ( $toId, $entity, null $limit = null, integer | null $paginate = null, string $orderDate = 'desc', Closur\Closure $filterScope = null ) : mixed |
Retrieve all notifications, not read
in first. |
|
getLastNotification ( $toId, $entity, Closur\Closure $filterScope = null ) : mixed |
Get last notification of the current
entity. |
|
getLastNotificationByCategory ( $category, $toId, $entity, Closur\Closure $filterScope = null ) : mixed |
Get last notification of the current
entity of a specific category. |
|
getNotRead ( $toId, $entity, $limit, integer | null $paginate = null, string $orderDate = 'desc', Closur\Closure $filterScope = null ) : mixed |
Retrieve notifications not Read
You can also limit the number of
Notification if you don't it will get all. |
|
readAll ( $toId, $entity ) : integer |
Make read all notification not read. |
|
readLimit ( $toId, $entity, $numbers, $order ) : integer |
Read notifications in base the number
Given. |
|
readOne ( Notification $notification ) : boolean | Notification |
Make Read One Notification. |
|