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

This package is auto-updated.

Last update: 2024-12-06 14:40:24 UTC


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