title: How can I append an Eloquent property from a related model without getting the model's contents?
body: <p>I have 2 eloquent models:</p>
  
  <pre><code>EloquentUser
  </code></pre>
  
  <p>and</p>
  
  <pre><code>SharedEvents
  </code></pre>
  
  <p>They are both related by user_id</p>
  
  <p>I'm attempting to set up and appends attribute in the SharedEvents model that will append the full_name of the user with whom the event has been shared.</p>
  
  <p>For the sake of readability, I'm only including the appends components of my class</p>
  
  <pre><code>class SharedEvents extends Model {
  
  protected $appends      = ['fullName'];
  
  /**
   * @return BelongsTo
   */
  public function user() : BelongsTo {
      return $this-&gt;belongsTo('Path\To\EloquentUser', 'shared_with_id', 'user_id');
  }
  
      /**
   * @return mixed
   */
  public function getFullNameAttribute(){
      return $this-&gt;user-&gt;user_full_name;
  }
  </code></pre>
  
  <p>Unfortunately when I run this I'm getting back both the full name and the entire user model when I only want the full name. </p>
  
  <p>Is there a way to avoid attaching the content of the user model?</p>