更新时间:2023-01-03 18:32:38
我不知道这对你有多大帮助,但你可能想看看干预图书馆。它原本打算用作图像处理库,但它提供了来自网址的保存图像:
I don't know if this will help you a lot but you might want to look at the Intervention Library. It's originally intended to be used as an image manipulation library but it provides saving image from url:
$image = Image::make('http://someurl.com/image.jpg')->save('/path/saveAsImageName.jpg');