|bool */ protected $guarded = ['id']; /** * All of the relationships to be touched. * * @var array */ protected $touches = ['contact']; protected $table = 'addresses'; /** * Get the account record associated with the address. * * @return BelongsTo */ public function account() { return $this->belongsTo(Account::class); } /** * Get the contact record associated with the address. * * @return BelongsTo */ public function contact() { return $this->belongsTo(Contact::class); } /** * Get the place record associated with the address. * * @return BelongsTo */ public function place() { return $this->belongsTo(Place::class); } /** * Get the label associated with the contact. * * @return BelongsToMany */ public function labels() { return $this->belongsToMany(ContactFieldLabel::class); } }