src/Prettus/Repository/Eloquent/BaseRepository.php
public function first($columns = ['*'])
    {
        $this->applyCriteria();
        $this->applyScope();

        $results = $this->model->first($columns);

        $this->resetModel();

        return $this->parserResult($results);
    }
public function first($columns = ['*'])
    {
        $this->applyCriteria();
        $this->applyScope();

        $results = $this->model->first($columns);

        $this->resetModel();

        return $this->parserResult($results);
    }
public function first ( $ columns = [ '*' ] ) { $ this -> applyCriteria ( ) ; $ this -> applyScope ( ) ; $ results = $ this -> model -> first ( $ columns ) ; $ this -> resetModel ( ) ; return $ this -> parserResult ( $ results ) ; }
Retrieve first data of repository

@param array $columns

@return mixed
Retrieve first data of repository