addConnection([ 'driver' => 'mysql', 'host' => 'localhost', 'database' => $dbName, 'username' => 'root', 'password' => 'pass', 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => '', ]); $capsule->bootEloquent();