larafun/filters

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

0.0.4 2021-03-27 08:55 UTC

This package is auto-updated.

Last update: 2024-10-27 17:01:15 UTC


README

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);
    }