Skip to content

Latest commit

 

History

History

criteria-to-eloquent

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Codely logo

🎼 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();