diff --git a/src/Relations/HasManyJson.php b/src/Relations/HasManyJson.php index 3687506..6990308 100644 --- a/src/Relations/HasManyJson.php +++ b/src/Relations/HasManyJson.php @@ -326,7 +326,9 @@ public function pivotAttributes(Model $model, Model $parent, array $records) public function getPathName() { /** @var string $pathName */ - $pathName = last(explode('.', $this->path)); + $pathName = last( + explode('.', $this->path) + ); return $pathName; }