public function getLast()
    {
        $result = $this->table()
            ->where('batch', $this->getLastBatchNumber())
            ->orderBy('mapping', 'desc')
            ->get();

        if (is_array($result)) {
            return $result;
        }

        return $result->toArray();
    }
public function getLast()
    {
        $result = $this->table()
            ->where('batch', $this->getLastBatchNumber())
            ->orderBy('mapping', 'desc')
            ->get();

        if (is_array($result)) {
            return $result;
        }

        return $result->toArray();
    }
public function getLast ( ) { $ result = $ this -> table ( ) -> where ( 'batch' , $ this -> getLastBatchNumber ( ) ) -> orderBy ( 'mapping' , 'desc' ) -> get ( ) ; if ( is_array ( $ result ) ) { return $ result ; } return $ result -> toArray ( ) ; }
Get the last mapping batch.

@return array
Get the last mapping batch .