Yii 2 Module wise configuration setting

I have setup Yii2 nested module and I want to set different configuration and each module has own component and other settings with there own models

Like in School Management System, I have created a nested module like V1 is my API (main module) and under these, I have created a Student module, Teacher module, Parent module, driver module, admin module each has a different table and different model. I want to login differently with each user like…

API calls for each

https://example.com/v1/admin/login

https://example.com/v1/student/login

https://example.com/v1/parent/login

https://example.com/v1/user/login

https://example.com/v1/driver/login

How can I manage these login and their own configuration?

image