pmatseykanets / laravel-scout-postgres

PostgreSQL Full Text Search Engine for Laravel Scout
MIT License
159 stars 36 forks source link

feat: accept callable for search config option #46

Open jaulz opened 3 years ago

jaulz commented 3 years ago

This PR will add the possibility to use a callback for the $config parameter. Having this it will allow you to support dynamic languages:

        'config' => function ($model) {
            return $model->language;
        },

This will probably solve https://github.com/pmatseykanets/laravel-scout-postgres/issues/42 as well.