laravel-5.3

Call to undefined method Intervention\Image\Facades\Image::make()

醉酒当歌 提交于 2020-08-27 22:14:42
问题 I upgrade from Laravel4.2 to Laravel5.3 with intervention/image : "^2.3", if (Input::hasFile('logo')) { $path = public_path()."/assets/admin/layout/img/"; File::makeDirectory($path, $mode = 0777, true, true); $image = Input::file('logo'); $extension = $image->getClientOriginalExtension(); $filename = "logo.$extension"; $filename_big = "logo-big.$extension"; Image::make($image->getRealPath())->save($path.$filename); Image::make($image->getRealPath())->save($path.$filename_big); $data['logo'] =

Call to undefined method Intervention\Image\Facades\Image::make()

主宰稳场 提交于 2020-08-27 22:14:41
问题 I upgrade from Laravel4.2 to Laravel5.3 with intervention/image : "^2.3", if (Input::hasFile('logo')) { $path = public_path()."/assets/admin/layout/img/"; File::makeDirectory($path, $mode = 0777, true, true); $image = Input::file('logo'); $extension = $image->getClientOriginalExtension(); $filename = "logo.$extension"; $filename_big = "logo-big.$extension"; Image::make($image->getRealPath())->save($path.$filename); Image::make($image->getRealPath())->save($path.$filename_big); $data['logo'] =