Skip to content

Commit

Permalink
Improved repository
Browse files Browse the repository at this point in the history
  • Loading branch information
libern committed Jul 3, 2018
1 parent 2aeae19 commit daa77dc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Someline/Base/Repositories/Eloquent/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,4 +276,13 @@ public function withoutGlobalScopes(array $scopes = null)
return $this;
}

/**
* Pre Apply Criteria for usage
*/
public function preApplyCriteria()
{
$this->applyCriteria();
$this->skipCriteria(true);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,10 @@ public function useModel(callable $callback);
* @return $this
*/
public function withoutGlobalScopes(array $scopes = null);

/**
* Pre Apply Criteria for usage
*/
public function preApplyCriteria();

}

0 comments on commit daa77dc

Please sign in to comment.