I'm trying to get the a minimal setup going with the MySQL driver.
I had a few issues, like first I was using MySQL 5.6 (which doesn't support IF NOT for the user creation). Upgraded to 5.7 got a user set up with the right permissions.
When I dispatch the created-event a user and database is created as expected.
(oh actually, I got a bunch of warnings that
$config['host'] was undefined. Looking at the hooks Configuring defaults a value isn't set.)
However, as you can see I get an InvalidArgumentException just as I run the event, before it finishes.
>>> event(new \Tenancy\Tenant\Events\Created($tenant));
InvalidArgumentException with message 'Database connection [tenant] not configured.'
Any hints to what that could be?
(I'm not sure what code to share, please let me know?)