src/Prettus/Repository/Eloquent/BaseRepository.php
public function find($id, $columns = ['*'])
    {
        $this->applyCriteria();
        $this->applyScope();
        $model = $this->model->findOrFail($id, $columns);
        $this->resetModel();

        return $this->parserResult($model);
    }
public function find($id, $columns = ['*'])
    {
        $this->applyCriteria();
        $this->applyScope();
        $model = $this->model->findOrFail($id, $columns);
        $this->resetModel();

        return $this->parserResult($model);
    }
public function find ( $ id , $ columns = [ '*' ] ) { $ this -> applyCriteria ( ) ; $ this -> applyScope ( ) ; $ model = $ this -> model -> findOrFail ( $ id , $ columns ) ; $ this -> resetModel ( ) ; return $ this -> parserResult ( $ model ) ; }
Find data by id

@param       $id
@param array $columns

@return mixed
Find data by id