Warning: Undefined array key "db" AdapterServiceFactory.php on line 21

Hi! I’m new at laminas right now. I have 2 questions. Firstly this error which i have, what does it mean?
in AdapterServiceFactory.php i have this code

public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null)
    {
        $config = $container->get('config');
        return new Adapter($config['db']);
    }

and second question is why laminas, what is features and which is better laminas or laravel?

Hello and welcome to our forums! :smiley:

The configuration for the database adapter cannot be found.

There is a tutorial to use a database adapter in a laminas-mvc application. In the tutorial the configuration is added under the configuration key db and your current error message will disappear: