src/Eloquent/BaseRepository.php
public function getById($id, $columns = ['*'])
    {
        try {
            $results = $this->getQuery()->findOrFail($id, $columns);
        }
        catch(ModelNotFoundException $e){
            throw new NotFoundRepositoryException($e);
        }

        return $this->returnResults($results);
    }
public function getById($id, $columns = ['*'])
    {
        try {
            $results = $this->getQuery()->findOrFail($id, $columns);
        }
        catch(ModelNotFoundException $e){
            throw new NotFoundRepositoryException($e);
        }

        return $this->returnResults($results);
    }
public function getById ( $ id , $ columns = [ '*' ] ) { try { $ results = $ this -> getQuery ( ) -> findOrFail ( $ id , $ columns ) ; } catch ( ModelNotFoundException $ e ) { throw new NotFoundRepositoryException ( $ e ) ; } return $ this -> returnResults ( $ results ) ; }
Find a single model by it's id

@param $id
@param array $columns
@return mixed
@throws NotFoundRepositoryException
Find a single model by it s id