'string', 'user_id' => 'string', 'alias_id' => 'string', 'recipient_id' => 'string', 'bounced' => 'boolean', 'created_at' => 'datetime', 'updated_at' => 'datetime', ]; /** * Get the user for the outbound message. */ public function user() { return $this->belongsTo(User::class); } /** * Get the recipient for the outbound message. */ public function recipient() { return $this->belongsTo(Recipient::class); } /** * Get the alias for the outbound message. */ public function alias() { return $this->belongsTo(Alias::class); } public function markAsBounced() { $this->update(['bounced' => true]); } }