Hello everyone. I'm facing the same issue with setting up Dusk with a MYSQL Database. Does anybody know, how to fix this issue with using a mysql database?
My extended config/database.php file
'dusk' => [
'driver' => 'mysql',
'database' => 'dusk-testing',
'host' => '127.0.0.1',
'port' => '3306',
'username' => 'root',
'password' => '',
'prefix' => '',
],
My .env.dusk files (,env,dusk, .env.dusk.local, .env.dusk.testing)
DB_CONNECTION=dusk
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=dusk-testing
DB_USERNAME=root
DB_PASSWORD=
My CreateApplication.php file
public function createApplication()
{
$app = require __DIR__.'/../bootstrap/app.php';
$app->make(Kernel::class)->bootstrap();
$app['config']->set('database.default','mysql');
return $app;
}
Any suggestions? It's so frustrating
Cheers, Stan