defaultConnectionName doesn't create correct connection

in app.php
’Datasources’ => [
‘default’ => [
‘financeiro’ => []

in my table/model
public static function defaultConnectionName()
return ‘financeiro’;

SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘g2isoluc_prontuario.contasreceber’ doesn’t exist

Your not actually specifying anything within the configuration for the financeiro connection in app.php.

provide it a host, database name, database username, database password and ensure the database user has valid permissions to the connection configuration.