This package is a fork of
cooperl/laravel-db2. The documentation is inaccurate.
He changed the namespace to
MichaelB but never tagged this as a stable version, so when you composer require his
~2.0, packagist gives you an older version with the wrong namespace.
So when you run
composer update, it runs some post-cmd scripts such as
php artisan optimize which tries to pull from the config file but fails because that class doesn't exist.
Here's how to fix it:
Change composer.json to this version:
composer update --no-scripts
Then you should be good.