PHP code example of sazzadbinashique / quick-search

1. Go to this page and download the library: Download sazzadbinashique/quick-search 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/ */

    

sazzadbinashique / quick-search example snippets


'providers' => [
    QuickSearch\QuickSearchServiceProvider::class,
  
],

'aliases' => [
    'QuickSearch' => QuickSearch\Facades\QuickSearch::class,
]

YourModel::search('John', ['name' => 'like', 'age' => 'equals'])
    ->multipleSelect(['status' => [1, 2, 3], 'category' => [4, 5, 6]])
    ->dateRange('created_at', '01/01/2022', '31/01/2022')
    ->sort('created_at', 'desc')
    ->get();
bash
php artisan vendor:publish --provider="QuickSearch\QuickSearchServiceProvider"