Skip to content

Commit

Permalink
Fixing package bug
Browse files Browse the repository at this point in the history
  • Loading branch information
digitaldreams committed Dec 4, 2018
1 parent 5629071 commit 0d48d83
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lara-crud/Crud/Transformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ protected function makeIncludes()
foreach ($methods as $method) {
if ($method->getNumberOfParameters() == 0 && $method->class == get_class($this->model)) {
$response = $method->invoke($this->model);
if (!is_object($response)) {
continue;
}
$responseClass = get_class($response);
if ($this->isItem($responseClass)) {
$this->makeIncludeArr('item', $method, $response);
Expand Down

0 comments on commit 0d48d83

Please sign in to comment.