Upgrading to L5 and getting "Class Not Found" on composer update

Posted 4 years ago by vincej

I've been following the instructions given on the Laravel site for upgrading 4.2 to 5.

When I run composer update I get a fatal error - any ideas what I could be doing wrong ?

Generating autoload files
PHP Fatal error:  Class 'Auburntree\Providers\RouteServiceProvider' not found in /var/www/auburntree/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php on line 150
exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Class 'Auburntree\Providers\RouteServiceProvider' not found' in /var/www/auburntree/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php:150
Stack trace:
#0 /var/www/auburntree/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(116): Illuminate\Foundation\Bootstrap\HandleExceptions->fatalExceptionFromError(Array)
#1 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleShutdown()
#2 {main}
Script php artisan clear-compiled handling the post-update-cmd event returned with an error

It feel to me that there is something wrong in my json file autoload files. The curious thing is that "RouteServiceProvider" is there under auburntree/app/providers. I think I have set things up according to the L5 instructions:

"autoload": {
        "classmap": [
        "psr-4": {
            "Auburntree\\": "app/"

I have also noticed that an PHPStorm is complaining about this taken from IlluminateQueueCloser.php:

public function fire($job, $data)
        $closure = unserialize($this->crypt->decrypt($data['closure']));

        $closure($job);    // $closure is red underlined

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