Skip to content

Commit

Permalink
Implement Arrayable and Jsonable (#23)
Browse files Browse the repository at this point in the history
* Implement Arrayable and Jsonable

* Add missing dependencies
  • Loading branch information
mpyw authored Nov 1, 2019
1 parent d163385 commit 39fe05b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"php": "^7.1",
"ext-json": "*",
"lampager/lampager": "^0.4",
"illuminate/contracts": "^5.6 || ^6.0 || ^7.0 || ^8.0",
"illuminate/support": "^5.6 || ^6.0 || ^7.0 || ^8.0",
"illuminate/database": "^5.6 || ^6.0 || ^7.0 || ^8.0"
},
Expand Down
4 changes: 3 additions & 1 deletion src/PaginationResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

namespace Lampager\Laravel;

use Illuminate\Contracts\Support\Arrayable;
use Illuminate\Contracts\Support\Jsonable;
use Illuminate\Support\Collection;
use Illuminate\Support\Str;
use Illuminate\Support\Traits\Macroable;
Expand All @@ -13,7 +15,7 @@
* @see BasePaginationResult
* @mixin Collection
*/
class PaginationResult extends BasePaginationResult implements \JsonSerializable
class PaginationResult extends BasePaginationResult implements \JsonSerializable, Arrayable, Jsonable
{
use Macroable {
__call as macroCall;
Expand Down

0 comments on commit 39fe05b

Please sign in to comment.