This is a work in progress project made to explore ways for building laravel app based on domain folder combined with angular frontend.
To read more about this pattern follow the link:-
https://stitcher.io/blog/organise-by-domain
Entries
├── Actions/
├── DTO/
├── Exceptions/
├── Models/
├── Rules/
├── Policies/
└── ValueObjects/
Note: Classes for Controller, Middleware, Form Request will reside in their default folders.
core
├── interceptors/
├── models/
├── services/
├── utils/
PHP 7.4 is getting typed properties, which i'm really excited about. And having a type system provides a lot of value on project of any size, so i thought about experimenting by making this small project.
As of now this structure is working really well, let's see how it goes when adding more features.
With typed language you have to write a bit more code, but trust me you'll love this over vanilla javascript. Also style guide provided by Angular team will help you improve your codebase. https://angular.io/guide/styleguide