'string', 'user_id' => 'string', 'recipient_id' => 'string', 'alias_id' => 'string' ]; /** * Prepare a date for array / JSON serialization. * * @param \DateTimeInterface $date * @return string */ protected function serializeDate(DateTimeInterface $date) { return $date->format('Y-m-d H:i:s'); } /** * Get the user for the failed delivery. */ public function user() { return $this->belongsTo(User::class); } /** * Get the recipient for the failed delivery. */ public function recipient() { return $this->belongsTo(Recipient::class); } /** * Get the alias for the failed delivery. */ public function alias() { return $this->belongsTo(Alias::class); } }