Unverified Commit 6abfd0f3 authored by carlos1270's avatar carlos1270 Committed by GitHub
Browse files

Merge pull request #117 from carlos1270/master

Erro no email do cadastro
parents 3b30c761 ebda3a3a
...@@ -137,8 +137,7 @@ class RegisterController extends Controller ...@@ -137,8 +137,7 @@ class RegisterController extends Controller
$user->proponentes()->save($proponente); $user->proponentes()->save($proponente);
} }
return $user; return $user;
} }
......
...@@ -45,10 +45,9 @@ class VerifyNotification extends Notification ...@@ -45,10 +45,9 @@ class VerifyNotification extends Notification
*/ */
public function toMail($notifiable) public function toMail($notifiable)
{ {
$user = Auth::user();
return (new MailMessage) return (new MailMessage)
->subject('Verifique seu e-mail') ->subject('Verifique seu e-mail')
->greeting("Olá, {$user->name}!") ->greeting("Olá, {$notifiable->name}!")
->action( ->action(
'Verifique seu E-mail', 'Verifique seu E-mail',
$this->verificationUrl($notifiable) $this->verificationUrl($notifiable)
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment