codelytv / criteria-from-laravel-request
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
- codelytv/criteria-from-url: ^0.1.3
- illuminate/http: ^v11
Requires (Dev)
- codelytv/coding-style: ^1.3
README
🎼 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); });