/filters

Use Filters instead of Requests in your Laravel projects to be more versatile.

Primary LanguagePHPMIT LicenseMIT

Larafun Filters

Build Status Docs Status Latest Stable Version License Total Downloads

Use Filters instead of Requests in your Laravel projects to be more versatile.

Check out the full documentation in here larafun-filters.readthedocs.io

Installation

Requires PHP > 7.0, Laravel > 5.5

composer require larafun/filters

Basic Usage

Just make your Filters extend Larafun\Filters\Filter

Why use this package?

Because its safer to not bind your Services to the Request.

You may want to use your Services on environments other than http.

class BookController extends Controller
{
    // ...

    public function index(BookFilter $filter)
    {
        return $bookServices->search($filter);
    }