\AppDocumentVersion

A DocumentVersion represents a version of a document.

Summary

Methods
Properties
Constants
generateUuid()
document()
writeContent()
readContent()
filesize()
filesizeBytes()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

generateUuid()

generateUuid() 

Generate a UUID for the document version.

document()

document() : \Illuminate\Database\Eloquent\Relations\BelongsTo

Returns the relationship to the related document model.

Returns

\Illuminate\Database\Eloquent\Relations\BelongsTo

writeContent()

writeContent(  $content) 

Writes the content of the document to the disk.

Parameters

$content

file content as string or stream

readContent()

readContent() : mixed

Read the document's content

Returns

mixed —

document content

filesize()

filesize() : string

Get the size of the document as formatted string.

Returns

string

filesizeBytes()

filesizeBytes() : mixed

Returns the document's size in bytes.

Returns

mixed —

number of bytes.