src/Factory.php
protected function createHandler($query, $builder = null)
    {
        $handler = new Handler($this->request, $this->config);

        $handler->setQuery($query);

        if (! is_null($builder)) {
            $handler->setBuilder($builder);
        }

        return $handler;
    }
protected function createHandler($query, $builder = null)
    {
        $handler = new Handler($this->request, $this->config);

        $handler->setQuery($query);

        if (! is_null($builder)) {
            $handler->setBuilder($builder);
        }

        return $handler;
    }
protected function createHandler ( $ query , $ builder = null ) { $ handler = new Handler ( $ this -> request , $ this -> config ) ; $ handler -> setQuery ( $ query ) ; if ( ! is_null ( $ builder ) ) { $ handler -> setBuilder ( $ builder ) ; } return $ handler ; }
Create the handler.

@param mixed $query
@param mixed $builder

@return \Jenky\LaravelApiHelper\Handler
Create the handler .