- Added support for Ignore attribute in dataset export of EntityTrait
- Work done on JSONification of entity
This commit is contained in:
1 parent
7f8780d328
commit
3a80fee9c3
5 files changed
+60
-22
No files matched your search
@@ -44,7 +44,7 @@ trait SearchRequestPaginationTrait {
|
||||
|
||||
public function pageCount() : int
|
||||
{
|
||||
return ceil($this->count() / $this->limit());
|
||||
return $this->pageCount = ceil($this->count() / $this->limit());
|
||||
}
|
||||
|
||||
public function hasPagination() : int
|
||||
@@ -65,4 +65,11 @@ trait SearchRequestPaginationTrait {
|
||||
|
||||
return $total <= $this->count() ? $total : $this->count();
|
||||
}
|
||||
|
||||
public function jsonSerialize(): mixed
|
||||
{
|
||||
$this->pageCount();
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user