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