tigerjun
2 months ago
524
16
Laravel

Class 'Intervention\Image\ImageServiceProvider' not found

Posted 2 months ago by tigerjun

"Class 'Intervention\Image\ImageServiceProvider' not found". I try everthing online. It still cant work.

in my composer.json

 "require": {
   "php": "^7.1.3",
    "fideloper/proxy": "^4.0",
    "fzaninotto/faker": "^1.8",
    "intervention/image": "dev-master",
    "laravel/framework": "5.8.*",
    "laravel/tinker": "^1.0",
    "maatwebsite/excel": "^3.1",
    "phpoffice/phpspreadsheet": "^1.9",
    "waavi/sanitizer": "~1.0"
},

in config file

'providers' => [
    Intervention\Image\ImageServiceProvider::class,
],

'aliases' => [  
    'Image' => Intervention\Image\Facades\Image::class
],

Please sign in or create an account to participate in this conversation.