diff --git a/src/Resource.php b/src/Resource.php index d50da3f8..bed0ada8 100644 --- a/src/Resource.php +++ b/src/Resource.php @@ -282,7 +282,7 @@ public function toArray(): array { return [ 'handle' => $this->handle(), - 'model' => $this->model(), + 'model' => get_class($this->model()), 'name' => $this->name(), 'blueprint' => $this->blueprint(), 'hidden' => $this->hidden(),