Send notification when server is created for user

This commit is contained in:
Dane Everitt 2016-10-14 15:58:52 -04:00
parent a115c71433
commit c989dd0cc2
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
3 changed files with 71 additions and 17 deletions

View file

@ -57,7 +57,7 @@ class AccountCreated extends Notification implements ShouldQueue
*/
public function via($notifiable)
{
return ['mail', 'database'];
return ['mail'];
}
/**
@ -74,17 +74,4 @@ class AccountCreated extends Notification implements ShouldQueue
->action('Setup Your Account', url('/auth/password/reset/' . $this->token . '?email=' . $notifiable->email));
}
/**
* Get the array representation of the notification.
*
* @param mixed $notifiable
* @return array
*/
public function toArray($notifiable)
{
return [
'email' => $notifiable->email,
'token' => $this->token
];
}
}