skip to Main Content

I am trying to publish image intervention but I get this kind error in terminal and browser,
this display of error

I have tryed to install image intervention including doing all configuration but installation was successful I add InterventionImageImageServiceProvider::class and $aliases ‘Image’ => InterventionImageFacadesImage::class in app.php but the problem arise when I try to publish package,APP.PHP,my controller my controller and my composer .json enter image description here

2

Answers


  1. Chosen as BEST ANSWER

    I posted this question but I have an answer in my past question it seen that i use image intervention v3 to install in laravel but soon that why the burgs from code was appeared.

    so the best solution is to uninstall. 1.using this command composer remove intervention/image it will uninstall v3 2.comment use InterventionImageImageManagerStatic as Image;. 3.use this command to install composer require "intervention/image=~2.0" 4.uncomment InterventionImageImageServiceProvider::class 5.make sure your aliases has this code'Image' => InterventionImageFacadesImage::class 6.publish image intervention: use this command php artisan vendor:publish --provider="InterventionImageImageServiceProviderLaravelRecent" 7.note all this are done in app.php 8.problem will be solved.


  2. I have a laravel 10 installation and i tried to install according to the instructions to recreate the problem and try to find a resolution:
    image intervention install for laravel

    problem 1:

    InterventionImageImageServiceProvider::class 
    

    does not exist in vendor folder

    problem 2:

    InterventionImageFacadesImage::class 
    

    does not exist in vendor folder for aliasing

    i did:

    composer require intervention/image
    

    I cannot explain it but for me it is impossible to install it when i follow the instructions. I checked out the vendor folder and there is no service provider file. There is also no facades folder.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search