App\Repositories\Criteria\Error\ErrorCreatedBefore::apply PHP Méthode

apply() public méthode

public apply ( $model, Bosnadev\Repositories\Contracts\RepositoryInterface $repository ) : mixed
$model
$repository Bosnadev\Repositories\Contracts\RepositoryInterface
Résultat mixed
    public function apply($model, Repository $repository)
    {
        $model = $model->where('created_at', '<', $this->date->format('Y-m-d'));
        return $model;
    }
ErrorCreatedBefore