|bool */ protected $guarded = ['id']; /** * Get the account record that is being shared. * * @return BelongsTo */ public function account() { return $this->belongsTo(Account::class); } /** * Get the user who sent the invitation. * * @return BelongsTo */ public function invitedBy() { return $this->belongsTo(User::class, 'invited_by_user_id'); } /** * Get the existing user being invited to link accounts. * * @return BelongsTo */ public function user() { return $this->belongsTo(User::class, 'user_id'); } }