php-ddd icon indicating copy to clipboard operation
php-ddd copied to clipboard

Repositories with Eloquent and Laravel

Open webdevilopers opened this issue 8 years ago • 2 comments

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.

webdevilopers avatar Nov 22 '16 09:11 webdevilopers

Laravel and Elequent feel totally wrong choice for DDD

mablae avatar Dec 08 '16 19:12 mablae

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/

webdevilopers avatar Dec 09 '16 09:12 webdevilopers