Prosperty assignment
docker-compose up --build
docker exec app composer install
docker exec app php artisan migrate --seeddocker/db/init-db.sh should be executable Note: docker/db/init-db.sh should be executable
The data flow : HTTP Request → Controller → DTO → Action/Command → Domain Logic → Eloquent Model → Database, with each step transforming the data as needed while maintaining isolation between layers.
HTTP requests enter through Controllers, which convert them into DTOs (Data Transfer Objects). These DTOs then flow through Application layer Actions and Commands, which orchestrate the business . The core Domain layer contains your Spy entity with its business rules and event handling. Finally, the Infrastructure layer uses Laravel's Eloquent ORM to handle database operations.
- Interface and Repository pattern - This would help the project to separate concerns of queries ideally with making it both framework-agnostic and using Laravel's eloquent. Added Spy Domain model / entity for a showcase.
- Better implementation of CreateSpy should not pass an eloquent Model
- More sophisticated authentication service tests