imagePathOf($item, $size === 'thumbnail') ?? abort(404); $disk = Storage::disk('local'); abort_unless($disk->exists($path), 404); return $disk->response($path, basename($path), ['Content-Type' => 'image/jpeg', 'Cache-Control' => 'private, max-age=86400']); } }