RepositoriesPattern
RepositoriesPattern copied to clipboard
Package which allows you to implement the repository pattern on your laravel 5.1+ projects. Easy to use and with a lot of great resources!
/** Applies the criterias in the stack before return the result. * @return $this */ public function applyCriteria() { if($this->skipCriteria) return $this; foreach($this->getCriterias() as $criteria) { $this->**model** = $criteria->apply($this->**model**, $this);...
In the second criteria, the entity became a Illuminate\Database\Eloquent\Builder See the image in this link: http://imgur.com/Bg9KCOY My criteria was implemented bases on the FindUsingLikeCriteria. See implementations bellow. **Criteria 1** ```
closes #3