0
我有我使用下面的代码来调整图像中laravel缩放图像5.4Laravel 5.4图像大小调整问题
一个问题:
$sample_front_image = $request->file('sample_front_image');
$input['sample_front_image'] = $sample_front_image->getClientOriginalName();
$image_resize = Image::make($sample_front_image->getRealPath());
$image_resize->resize(120, 120);
$image_resize->save(public_path($thumbnail_dir, $input['sample_front_image']));
上面的代码似乎对以前的laravel版本正常工作,但不适用于5.4版本。任何方案?