protected function getRelationshipFromMethod($method)
{
$relations = $this->{$method}();
if (!$relations instanceof Relation) {
throw new LogicException('Relationship method must return an object of type ' . 'Illuminate\\Database\\Eloquent\\Relations\\Relation');
}
$this->setRelation($method, $results = $relations->getResults());
return $results;
}