PHP code example of vaened / laravel-searcher

1. Go to this page and download the library: Download vaened/laravel-searcher 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/ */

    

vaened / laravel-searcher example snippets


// 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