codelytv / criteria-to-eloquent
There is no license information available for the latest version (0.1.3) of this package.
0.1.3
2024-08-06 13:56 UTC
Requires
- php: ^8.2
- codelytv/criteria: ^0.1.3
- illuminate/database: ^11
Requires (Dev)
- codelytv/criteria-test-mother: ^0.1.3
README
🎼 Criteria to Eloquent
🔒 Read-only repository
Any modification must be done in the main repository.
📥 Installation
composer require codelytv/criteria-to-eloquent
💻 Usage
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();