trait ResolvesInlineImages

Methods

array
resolveInlineImage(File|UploadedFile $attachment, string $endpoint, array $formats)

Resolve an attachment to an image with its content and MIME type.

Details

at line 25
protected array resolveInlineImage(File|UploadedFile $attachment, string $endpoint, array $formats)

Resolve an attachment to an image with its content and MIME type.

Parameters

File|UploadedFile $attachment
string $endpoint
array $formats

Return Value

array

Exceptions

InvalidArgumentException