belongsTo(User::class); } public function jsonSerialize():array { return [ 'id' => $this->id, 'uuid' => $this->uuid, 'name' => $this->name, 'path' => S3::signUrl($this->path), 'user' => $this->user, ]; } }