vaened/laravel-searcher

There is no license information available for the latest version (V2.1.0) of this package.

Search engine builder for eloquent

V2.1.0 2022-07-15 19:19 UTC

This package is auto-updated.

Last update: 2024-11-16 00:51:03 UTC


README

Build Status Scrutinizer Code Quality Software License

Search engine builder for eloquent.

// create a range date
$dates = new FullDayDates('1980-01-01', date('Y-m-d'));

// build query
$query = $this->searcher->bornBetween($dates)
    ->filter([Profession::PHP_DEVELOPER])
    ->knowledgeIn([Framework::LARAVEL])
    ->search(Index::STATUS, 'available');

$query->paginate(); // laravel pagination