public function last()
    {
        if ($this->count()) {
            $models = $this->getModels();
            return $models[$this->count() - 1];
        }
        return null;
    }
public function last()
    {
        if ($this->count()) {
            $models = $this->getModels();
            return $models[$this->count() - 1];
        }
        return null;
    }
public function last ( ) { if ( $ this -> count ( ) ) { $ models = $ this -> getModels ( ) ; return $ models [ $ this -> count ( ) - 1 ] ; } return null ; }
Obtiene el ultimo modelo de la lista

@return Model|null
Obtiene el ultimo modelo de la lista