vendredi 14 février 2020

Laravel Modules With DDD

We have old laravel project where we used nWidart/laravel-modules. Now we are moving on to a different microservice arch, some modules moved to go services. There is a question, how to organize this project in laravel. We found example using DDD and we liked it, because we used same way with allocated services. But we have many unseparated modules and it's difficult to lead them to a similar look. How is better combine DDD and nWidart/laravel-modules in one project? I have idea to do something like this:

/app
├── /Application
|  ├── /Exceptions
|  ├── /Providers
|  ├── /Modules <--- modules here
├── /Domain
|  ├── /User
|  ├── .
|  ├── .
|  ├── .
├── /Infrastructure
|  ├── /Contracts
|  ├── /Jobs
|  ├── /Listeners
├── /Interfaces
|  ├── /Console
|  ├── /Http
/bootstrap
/config
...

But I'm not sure! Please help!

Aucun commentaire:

Enregistrer un commentaire