We make sure our module code will run in the Craft application by updating the Composer autoloader files and adding it to the Craft bootstrap config.
Now we need to make sure Composer knows about our new module and where its classes are. So we have to edit the composer.json file and add the namespace as a key and then the module location as the value.
"autoload": {
"psr-4": {
"craftquest\\": "modules/cqcontrolpanel/"
}
}
After that we need to update the Craft application config file located in config/app.php and tell it about our new module. This will tell Craft about your module and then, optionally, load it on every request.
'modules' ['c-q-control-panel' => modules\craftquest\cqcontrolpanel\CQControlPanel::class
],
'bootstrap' => ['c-q-control-panel'],

I am the creator of CraftQuest, a web developer, and former software team manager. I spend most of my time improving CraftQuest with code and courses. When I'm not in front of the computer, I spend my time with my family, and running on the roads and trails of Austin, TX.