php-ddd
php-ddd copied to clipboard
Repositories with Eloquent and Laravel
Though I'm personally not using it here is a blog about the interface implementation by @dericcain for Eloquent and Laravel:
- https://medium.com/@dericcain/using-the-repository-pattern-in-laravel-5-f7c6388db8d0#.2nbovuofd
For further adapting to Domain-Driven Design please refer to https://github.com/webdevilopers/php-ddd/issues/13.
Laravel and Elequent feel totally wrong choice for DDD
Personally I totally agree on this @mablae . My choice is @Doctrine ORM and ODM equivalent to Java with Hibernate etc..
There was a similar discussion with @radmen and @adamwathan here:
- https://adamwathan.me/2015/02/14/active-repository-is-an-antipattern/#comment-2139162143
Eloquent and the Active Record pattern
Some thoughts on this talking about the DomainModel:
- https://blog.inf.ed.ac.uk/sapm/2014/02/04/the-anaemic-domain-model-is-no-anti-pattern-its-a-solid-design/