website as saas in php for different users with different databases

Client demanded a lms system where different users (think it of as an admin of a school branch) has to register and each school will have its own subdomain like (user1.lms.com, user2.lms.com) and each school will have its own database.

like the code will be the same but the user1 will have subdomain like user1.lms.com and will have its own data different than the data of the user2.lms.com

the project is developed in php framework similar to laravel because it has .env file for the environment variables.