Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mikebarwick's avatar

Updating to L5.2 error: Error Output: PHP Fatal error: Call to undefined method Illuminate\Bus\Dispatcher::map Using()

Hey there...I'm upgrading my project to L5.2, but I'm running into an error when running composer update.

Error Output: PHP Fatal error:  Call to undefined method Illuminate\Bus\Dispatcher::map  
  Using() in /project/app/Providers/BusServiceProvider.php on  
   line 16  

If I remove the Illuminate\Bus\BusServiceProvider::class, from app.php and delete the BusServiceProvider in my App/Providers folder, I get this error:

Error Output: PHP Fatal error:  Class 'App\Providers\BusServiceProvider' not found in /project/vendor/laravel/framework/src/Illuminate/Foundation/  
  ProviderRepository.php on line 146 

I don't believe in need the collective package Laravel mentions in their upgrade documentation.

0 likes
1 reply
lagbox's avatar

Try clearing the compiled file and cache.

Please or to participate in this conversation.