We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56b78a7 commit 070fe43Copy full SHA for 070fe43
src/Matthenning/EloquentApiFilter/Resource.php
@@ -37,11 +37,7 @@ public function enrich($data): array
37
{
38
foreach ($this->getRelationNames() as $relation=>$relationClass) {
39
if ($this->resource->relationLoaded($relation)) {
40
- if (isset(($this->resource->$relation)::$resourceName) && ($this->resource->$relation)::$resourceName != null) {
41
- $data[$relation] = new (($this->resource->$relation)::$resourceName)($this->resource->$relation);
42
- } else {
43
- $data[$relation] = $this->resource->$relation;
44
- }
+ $data[$relation] = $this->resource->$relation;
45
}
46
47
0 commit comments