Skip to content

Commit

Permalink
update latest fractal library
Browse files Browse the repository at this point in the history
  • Loading branch information
triasrahman committed Oct 27, 2024
1 parent 14dc85e commit 9e93aa4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,13 @@ use Foo\Bar\Models\Product;
class ProductTransformer extends Transformer
{
// Related transformer that can be included
public $availableIncludes = [
protected array $availableIncludes = [
'categories',
'brand',
];

// Related transformer that will be included by default
public $defaultIncludes = [
protected array $defaultIncludes = [
'categories',
];

Expand Down
6 changes: 3 additions & 3 deletions classes/Transformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ abstract class Transformer extends TransformerAbstract

public $implement;

public $defaultIncludes = [];
protected array $defaultIncludes = [];

public $availableIncludes = [];
protected array $availableIncludes = [];

protected $additionalFields = [];
protected array $additionalFields = [];
/**
* Instantiate a new BackendController instance.
*/
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"keywords": ["october", "api"],
"require": {
"php": "^8.0.2",
"league/fractal": "^0.19"
"league/fractal": "^0.20"
}
}

0 comments on commit 9e93aa4

Please sign in to comment.