We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Implements a Repository pattern compatible with Eloquent.
Repository
Eloquent
Your eloquent scopes SHOULD be moved into your repositories.
SHOULD
User
Add a protected property called $repository into your model (eg User.php) :
protected property
$repository
User.php
protected $repository = 'Path\To\UserRepository';
And create your UserRepository.php :
UserRepository.php
use WhiteFrame\Helloquent\Repository; class UserRepository extends Repository { protected $entity = 'Path\To\User'; }