refactor(notifications): standardize getRecipients method signatures

This commit is contained in:
Andras Bacsai
2025-03-24 17:55:10 +01:00
parent 5e6c112fcc
commit e7f32a1c44
6 changed files with 43 additions and 22 deletions

View File

@@ -116,9 +116,9 @@ class User extends Authenticatable implements SendsEmail
return $this->belongsToMany(Team::class)->withPivot('role');
}
public function getRecipients($notification)
public function getRecipients(): array
{
return $this->email;
return [$this->email];
}
public function sendVerificationEmail()