Skip to content

Commit

Permalink
Updated criteria to use Eloquent contract
Browse files Browse the repository at this point in the history
  • Loading branch information
sinemacula-ben committed Apr 23, 2024
1 parent df27fc3 commit ccd8843
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Contracts/CriteriaInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace SineMacula\Repositories\Contracts;

use Illuminate\Contracts\Database\Query\Builder;
use Illuminate\Contracts\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;

/**
Expand All @@ -17,7 +17,7 @@ interface CriteriaInterface
* Apply the criteria to the given model.
*
* @param \Illuminate\Database\Eloquent\Model $model
* @return \Illuminate\Contracts\Database\Query\Builder
* @return \Illuminate\Contracts\Database\Eloquent\Builder
*/
public function apply(Model $model): Builder;
}

0 comments on commit ccd8843

Please sign in to comment.