yabhq / laravel-scout-mysql-driver

Laravel Scout MySQL Driver
MIT License
522 stars 113 forks source link

Implement callback within search #70

Closed buchin closed 6 years ago

buchin commented 6 years ago

With this improvement, now we are able to do custom filtering, sorting, etc.

Example with pimpable package:

$products = Product::search($term, function($query, $builder){
    return $query->pimp();
})->paginate(12);