*/ public function toArray(Request $request): array { return [ // What a record stores — `featured_image` on a page — and so the one // field a caller has to keep. 'path' => $this->path, 'url' => $this->url(), 'mime' => $this->mime, 'size' => $this->size, 'width' => $this->width, 'height' => $this->height, // False until the queue has derived the smaller versions and the // placeholder. The image serves either way. 'processed' => $this->isProcessed(), ]; } }