LaravelPackages.net
Acme Inc.
Toggle sidebar
betalabs/engine-api-handler

Package providing relation filtering abilities to API-handler

6.970
0
v4.0.3
About betalabs/engine-api-handler

betalabs/engine-api-handler is a Laravel package for package providing relation filtering abilities to api-handler. It currently has 0 GitHub stars and 6.970 downloads on Packagist (latest version v4.0.3). Install it with composer require betalabs/engine-api-handler. Discover more Laravel packages by betalabs or browse all Laravel packages to compare alternatives.

Last updated

engine-api-handler

This package allows the search and filtering of related tables data using Marcel Gwerder's API handler. It only requires that you extend the class AbstractIndexHandler, implementing the method buildQuery(), which must return Laravel's \Illuminate\Database\Eloquent\Builder object. Then, to return the query results, you must call the method execute() of that class.

For the correct functioning of the package, you must separate the related tables using "->" in the URL, instead of ".". You must also name the Eloquent methods of each related table using the exact same name of that table in the Database.

You also have to put the file apihandler.php inside the config folder of your laravel project.

Installation

Install the package via composer

$ composer require betalabs/engine-api-handler

Star History Chart