Laravel Intervention Imageserviceprovider not found

Asked

Viewed 129 times

0

I’m facing a problem with the lib Intervention/Image where I really have no idea what might be going on and how to solve, the research I did on the internet has led me to nothing but the explanations themselves reported on the developer’s website, the tricky thing is that it works in my local environment with the same settings, with the exception of the Composer that is locally in 1.8.0.

Meu servidor online
-- Composer version 1.8.5
-- Laravel version 5.8
-- PHP version 7.3.0
-- Fileinfo support ativo
-- GD Support ativo / Version bundled (2.1.0 compatible)
-- Imagick PHP extension não instalada

As I did locally, I followed exactly the informed instructions on the developer’s website.

php composer.phar require intervention/image
Add config/app.php $providers: Intervention\Image\ImageServiceProvider::class
Add config/app.php $alias: 'Image' => Intervention\Image\Facades\Image::class

Here the problem begins.

$ php artisan vendor:publish --provider="Intervention\Image\ImageServiceProviderLaravel5"

When I run the command I get the following message.

[waservice@web7081 portal]$ php artisan vendor:publish --provider="Intervention\Image\ImageServiceProviderLaravel5"

In ProviderRepository.php line 208:
Class 'Intervention\Image\ImageServiceProvider' not found

Here is the dump-autoload return:

[waservice@web7081 ~]$ php composer.phar dump-autoload
Generated autoload files containing 0 classes

Optimized autoload return:

[waservice@web7081 ~]$ php composer.phar dump-autoload -o
Generated optimized autoload files containing 156 classes

Party that informs the Intervention in Composer.json

"require": {
   "php": "^7.1.3",
   "fideloper/proxy": "^4.0",
   "laravel/framework": "5.8.*",
   "laravel/tinker": "^1.0",
   "intervention/image": "dev-master"
},

Return of the Composer update.

[waservice@web7081 ~]$ php composer.phar update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files

Return of the install

[waservice@web7081 ~]$ php composer.phar install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Generating autoload files

Return of my install Intervention

[waservice@web7081 ~]$ php composer.phar require intervention/image
Using version ^2.4 for intervention/image
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files

In the vendor there is the folder Intervention, I’m really stuck here. Someone can give a light.

  • Opa Max, have you ever tried to install a new project of the Laravel and then install the pack? (To test) Or, try running Composer update and then install the pack

  • Yes, even this last time I did all the update, dump and what else to do before downloading the lib of the Intervention.

1 answer

0

You have already tried to remove the vendor folder and install again with Composer?

  • rm -rf vendor
  • composer install
  • Unsuccessful friend, he even re-downloaded the Intervention and tals.. but the error persists.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.