src/Eloquent/Repository.php
public function renderSql()
    {
        $result = vsprintf(
            $this->getBuilder()->getQuery()->toSql(),
            $this->getBuilder()->getQuery()->getBindings()
        );

        // Reset query builder
        $this->resetBuilder();

        return $result;
    }
public function renderSql()
    {
        $result = vsprintf(
            $this->getBuilder()->getQuery()->toSql(),
            $this->getBuilder()->getQuery()->getBindings()
        );

        // Reset query builder
        $this->resetBuilder();

        return $result;
    }
public function renderSql ( ) { $ result = vsprintf ( $ this -> getBuilder ( ) -> getQuery ( ) -> toSql ( ) , $ this -> getBuilder ( ) -> getQuery ( ) -> getBindings ( ) ) ; // Reset query builder $ this -> resetBuilder ( ) ; return $ result ; }
Render repository's query SQL string.

@author Morten Rugaard <moru@nodes.dk>

@return string
Render repository s query SQL string .