/** * Get the other or associated key for the relationship. * * @return string */ public function other_key() { return Relationship::foreign($this->model, $this->other); }
/** * Get the properly hydrated results for the relationship. * * @return Model */ public function results() { return parent::first(); }