how do you know all service providers are being called twice?
Xdebug helped me to do this.
I tested my application and by chance I found one weird thing: all service providers started to load again.
After some researching I found that in file
boot section there is the
$this->registerModules(); call that loads
BootstrapServiceProvider class. This triggers Laravel to reload all Service providers again.
So, you should avoid to load any service providers in boot section!
But if you try to move
register you will get some errors that
translator target class not found. So, you should force load them before.