Laravel Class 'Image' not found 解决记录

燕翔飞
2023-12-01

 

1: 先检查是否已经依赖是否没有安装:

composer require intervention/image 

2: 到config/app.php 中添加 下面语句到 providers array:

 Intervention\Image\ImageServiceProvider::class,

3: 到config/app.php 添加下面语句到 aliases array:

 'Image' => Intervention\Image\Facades\Image::class
 类似资料: