Fenos\Notifynder\Contracts\NotificationDB::getAll PHP Méthode

getAll() public méthode

You can also limit the number of Notifications if you don't, it will get all.
public getAll ( $toId, $entity, null $limit = null, integer | null $paginate = null, string $orderDate = 'desc', Closur\Closure $filterScope = null ) : mixed
$toId
$entity
$limit null
$paginate integer | null
$orderDate string
$filterScope Closur\Closure
Résultat mixed
    public function getAll($toId, $entity, $limit = null, $paginate = null, $orderDate = 'desc', Closure $filterScope = null);

Usage Example

 /**
  * Get All notifications
  *
  * @param           $to_id
  * @param           $limit
  * @param  int|null $paginate
  * @param  string   $orderDate
  * @param Closure   $filterScope
  * @return mixed
  */
 public function getAll($to_id, $limit = null, $paginate = null, $orderDate = 'desc', Closure $filterScope = null)
 {
     $notifications = $this->notifynderRepo->getAll($to_id, $this->entity, $limit, $paginate, $orderDate, $filterScope);
     if (is_int(intval($paginate)) && $paginate) {
         return new LengthAwarePaginator($notifications->parse(), $notifications->total(), $limit, $paginate, ['path' => LengthAwarePaginator::resolveCurrentPath()]);
     }
     return $notifications->parse();
 }
All Usage Examples Of Fenos\Notifynder\Contracts\NotificationDB::getAll