AkrilliA / laravel-beyond

Create Laravel classes in a domain driven way (insired by Spatie Laravel Beyond CRUD)
ISC License
219 stars 24 forks source link

Deptrac integration #38

Closed Wulfheart closed 11 months ago

Wulfheart commented 2 years ago

Just like #37 based on Ryutu Hamasakis talk at Laracon Online Winter 2022 (https://youtu.be/0Rq-yHAwYjQ?t=5885 -> link now with different timestamp than before): To seperate the domain boundaries we could use deptrac and maybe add this to the default template. What do you think?

regnerisch commented 2 years ago

This sounds quite interesting, could you provide some examples or more information about how you would expect this to be integrated?

Wulfheart commented 2 years ago

It depends. I am not that familiar with the book. How does the communication between domains work? Via Actions? Is there an open source application which uses this package?

alexanderkroneis commented 2 years ago

I don't know any open source application using our package and/or Spaties book. @regnerisch Tell me if I'm wrong but domains mainly communicate via Actions.

Wulfheart commented 2 years ago

I am not sure. I don't exactly recall everything from Laravel Beyond Crud. But as far as I recall correctly one shouldn't e.g. use the model of another domain. Am I right about this?

alexanderkroneis commented 1 year ago

We'll close this issue since we don't want to add another dependency on the stack. Thank you for your contribution.

regnerisch commented 1 year ago

We could add a command php artisan beyond:publish:deptrac with an default config for the new v7 structure. So the users are free to add it to their project or not.

regnerisch commented 11 months ago

We now support Deptrac! php artisan beyond:publish:deptrac publishes a v7 compatible deptrac.yaml file and allows users to enforce architectural decisions by Laravel Beyond.

Edit: I just configured a small amount, it would be nice if somebody could configure all missing classes! Maybe @Wulfheart?