src/Handler.php
protected function getSupportedParams($method)
    {
        $columns = [];

        if ($this->isEloquentBuilder()) {
            $model = $this->getHandler()->getModel();
            $columns = in_array(ApiHelper::class, class_uses($model))
                ? $model->$method()
                : $model->getFillable();
        }

        return $columns;
    }
protected function getSupportedParams($method)
    {
        $columns = [];

        if ($this->isEloquentBuilder()) {
            $model = $this->getHandler()->getModel();
            $columns = in_array(ApiHelper::class, class_uses($model))
                ? $model->$method()
                : $model->getFillable();
        }

        return $columns;
    }
protected function getSupportedParams ( $ method ) { $ columns = [ ] ; if ( $ this -> isEloquentBuilder ( ) ) { $ model = $ this -> getHandler ( ) -> getModel ( ) ; $ columns = in_array ( ApiHelper :: class , class_uses ( $ model ) ) ? $ model -> $ method ( ) : $ model -> getFillable ( ) ; } return $ columns ; }
Get supported params.

@param  string $method
@return array
Get supported params .