Database adapter cannot be created in Apigility - "driver" key is not present

Service with name “Laminas\Db\Adapter\AdapterInterface” could not be created. Reason: createDriver expects a “driver” key to be present inside the parameters

you need to provide driver key, eg:

'driver' => 'Pdo' ,

i provided the driver key but it doesn’t work