PHP code example of comhon-project / laravel-entity-requester
1. Go to this page and download the library: Download comhon-project/laravel-entity-requester library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
comhon-project / laravel-entity-requester example snippets
use Comhon\EntityRequester\Facades\EntityRequestValidator;
use Comhon\EntityRequester\Facades\EloquentBuilderFactory;
$entityRequest = EntityRequestValidator::validate($request->all());
$results = EloquentBuilderFactory::fromEntityRequest($entityRequest)->get();
// Or directly from inputs (skips authorization, use only with trusted sources)
$results = EloquentBuilderFactory::fromInputs($request->all())->get();
bash
php artisan vendor:publish --tag="entity-requester-config"