问题描述
[此作曲家更新命令的图像不起作用][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;
现在开始工作了..