Closed D3R50N closed 1 month ago
Did you add 'database': databaseConfig,
in config/app.dart
No didn't. It works when I did.
Can you tell why the default is null ? Cause if we need to set to databaseConfig, why not make it the default like in the migration.dart
?
We are working on this
When trying to run a connection with database I got this :
Exception: Database driver not found
I tried to get data from table using a route
/api/users
which uses userController.index method. The line isawait User().query().get()
. It occurs an exeption. It seems the mysql driver is not found. Even if it's there.Additional context Migrations work correctly. Vania can create all tables inside migrations. But can't fetch data.
Logs