Any modification must be done in the main repository.
composer require codelytv/criteria-to-eloquent
There are two ways to use this package.
Classic way:
$toConverter = new CriteriaToEloquentConverter();
$users = $toConverter->applyCriteria(User::query(), $criteria)->get();
Laravel way:
$users = CriteriaToEloquentConverter::convert(User::query(), $criteria)->get();