trait HasFileAttachments (View source)

Properties

protected string|Closure|null $fileAttachmentsDirectory
protected string|Closure|null $fileAttachmentsDiskName
protected Closure|null $getUploadedAttachmentUrlUsing
protected Closure|null $saveUploadedFileAttachmentsUsing
protected string|Closure $fileAttachmentsVisibility

Methods

fileAttachmentsDirectory(string|Closure|null $directory)

No description

fileAttachmentsDisk(string|Closure|null $name)

No description

string|null
saveUploadedFileAttachment(TemporaryUploadedFile $attachment)

No description

fileAttachmentsVisibility(string|Closure $visibility)

No description

string|null
getFileAttachmentsDirectory()

No description

Filesystem
getFileAttachmentsDisk()

No description

string
getFileAttachmentsDiskName()

No description

string
getFileAttachmentsVisibility()

No description

mixed
handleFileAttachmentUpload(SplFileInfo $file)

No description

string|null
handleUploadedAttachmentUrlRetrieval(mixed $file)

No description

Details

HasFileAttachments fileAttachmentsDirectory(string|Closure|null $directory)

No description

Parameters

string|Closure|null $directory

Return Value

HasFileAttachments

HasFileAttachments fileAttachmentsDisk(string|Closure|null $name)

No description

Parameters

string|Closure|null $name

Return Value

HasFileAttachments

string|null saveUploadedFileAttachment(TemporaryUploadedFile $attachment)

No description

Parameters

TemporaryUploadedFile $attachment

Return Value

string|null

HasFileAttachments fileAttachmentsVisibility(string|Closure $visibility)

No description

Parameters

string|Closure $visibility

Return Value

HasFileAttachments

HasFileAttachments getUploadedAttachmentUrlUsing(Closure|null $callback)

No description

Parameters

Closure|null $callback

Return Value

HasFileAttachments

HasFileAttachments saveUploadedFileAttachmentsUsing(Closure|null $callback)

No description

Parameters

Closure|null $callback

Return Value

HasFileAttachments

string|null getFileAttachmentsDirectory()

No description

Return Value

string|null

Filesystem getFileAttachmentsDisk()

No description

Return Value

Filesystem

string getFileAttachmentsDiskName()

No description

Return Value

string

string getFileAttachmentsVisibility()

No description

Return Value

string

protected mixed handleFileAttachmentUpload(SplFileInfo $file)

No description

Parameters

SplFileInfo $file

Return Value

mixed

protected string|null handleUploadedAttachmentUrlRetrieval(mixed $file)

No description

Parameters

mixed $file

Return Value

string|null