下载后图像干预不起作用,作曲家更新不起作用早些时候我不小心删除了供应商文件夹

问题描述

[此作曲家更新命令的图像不起作用][1]

[运行程序时出现以下错误][2]

web.PHP

<?PHP

use Illuminate\Support\Facades\Route;
use Intervention\Image\ImageManagerStatic as Image;


Route::get('/',[App\Http\Controllers\HomeController::class,'index'])->name('home');

Route::get('/image',function(){

    $img = ImageManagerStatic::make('images/altroz13.jpg')
                              ->resize(400,250)
                              ->save('images/altroz13a.jpg');
});


  [1]: https://i.stack.imgur.com/tc6Ad.png
  [2]: https://i.stack.imgur.com/oO7Bp.png

解决方法

而不是这个 使用 Intervention\Image\ImageManagerStatic 作为图像;

我用 使用 Intervention\Image\ImageManagerStatic;

现在开始工作了..