public function getById($id, array $options = [])
    {
        $query = $this->createBaseBuilder($options);

        return $query->find($id);
    }
public function getById($id, array $options = [])
    {
        $query = $this->createBaseBuilder($options);

        return $query->find($id);
    }
public function getById ( $ id , array $ options = [ ] ) { $ query = $ this -> createBaseBuilder ( $ options ) ; return $ query -> find ( $ id ) ; }
Get a resource by its primary key
@param  mixed $id
@param  array $options
@return Collection
Get a resource by its primary key