📜  laravel 无法将图像数据写入路径 Image::make($image)->resize - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:49.581000             🧑  作者: Mango

代码示例1
// instead of direct address to folder using storage:
            Image::make($img)->resize(917, 1000)->save('storage/upload/products/multi-image/' . $make_name);
or
            Image::make($img)->resize(917, 1000)->save('/upload/products/multi-image/' . $make_name);

// should use public_path('


Image::make($image)->resize(468, 249)->save(public_path('img/products'.$filename)); //save you image