Skip to content

Latest commit

 

History

History

criteria-from-laravel-request

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Codely logo

🎼 Criteria from Laravel Request

🔒 Read-only repository

Any modification must be done in the main repository.

📥 Installation

composer require codelytv/criteria-from-laravel-request

💻 Usage

The criteria converter expect an url with the following format.

There are two ways to use this package.

Classic way:

Route::get('users', function (Request $request) {
    $fromConverter = new CriteriaFromLaravelRequestConverter();

    $criteria = $fromConverter->toCriteria($request);
});

Laravel way:

Route::get('users', function (Request $request) {
    $criteria = CriteriaFromLaravelRequestConverter::convert($request);
});