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

daolincheng's avatar

Laravel composer install error BroadcastServiceProvider Class not found

composer install --no-interaction --no-dev --prefer-dist

I try to deploy my app on DigitalOcean server, got error when executing above command.

[Symfony\Component\Debug\Exception\FatalErrorException]
  Class 'Illuminate\Broadcasting\BroadcastServiceProvider' not found

Script php artisan clear-compiled handling the post-install-cmd event returned with an error

0 likes
1 reply
dezgo's avatar

does the file /vendor/laravel/framework/src/Illuminate/Broadcasting/BroadcastServiceProvider.php exist?

Please or to participate in this conversation.