src/Jedrzej/Searchable/SearchableTrait.php
protected function callInterceptor(Builder $builder, $field, Constraint $constraint)
    {
        $model = $builder->getModel();
        $interceptor = sprintf('process%sFilter', str_replace(':', '_', Str::studly($field)));

        if (method_exists($model, $interceptor)) {
            if ($model->$interceptor($builder, $constraint)) {
                return true;
            }
        }

        return false;
    }
protected function callInterceptor(Builder $builder, $field, Constraint $constraint)
    {
        $model = $builder->getModel();
        $interceptor = sprintf('process%sFilter', str_replace(':', '_', Str::studly($field)));

        if (method_exists($model, $interceptor)) {
            if ($model->$interceptor($builder, $constraint)) {
                return true;
            }
        }

        return false;
    }
protected function callInterceptor ( Builder $ builder , $ field , Constraint $ constraint ) { $ model = $ builder -> getModel ( ) ; $ interceptor = sprintf ( 'process%sFilter' , str_replace ( ':' , '_' , Str :: studly ( $ field ) ) ) ; if ( method_exists ( $ model , $ interceptor ) ) { if ( $ model -> $ interceptor ( $ builder , $ constraint ) ) { return true ; } } return false ; }
Calls constraint interceptor on model.

@param Builder    $builder    query builder
@param string     $field      field on which constraint is applied
@param Constraint $constraint constraint

@return bool true if constraint was intercepted by model's method
Calls constraint interceptor on model .