Class not found, but another project worked

1

I have already inserted the Agent Class into another project using Laravel 4, everything was working correctly, but now that I'm trying to put in another project Laravel is returning the error:

Symfony \ Component \ Debug \ Exception \ FatalErrorException
Class 'Jenssegers\Agent\AgentServiceProvider' not found

He says that he did not find the file being that everything is correct:

Intheapp/config/app.phpfile,Iinsertedthelinesasitiswritteninthe GitHub ... Yet you are giving this error. Does anyone know where I might be going wrong?

    
asked by anonymous 17.02.2014 / 15:59

2 answers

1

Suggestion:

  • Completely remove the vendor/jenssegers folder

  • Run the laravel-master command to update your composer

  • Run the command composer selfupdate

  • If the above command fails, add composer require jenssegers/agent to the "jenssegers/agent": "*" section of your require file, if it is not already there

  • Run the command composer.json

  • If it still does not work, please include composer update -o jenssegers/agent content in your question to help us with the diagnosis.

        
    19.02.2014 / 05:05
    -1

    You need to give composer dump-autoload to the terminal. This will generate the autoload files again.

        
    18.02.2014 / 23:35