my register has a welcome message (email), it generates a random number
protected function create(array $data)
{
return User::create([
'name' => $data['name'],
'email' => $data['email'],
't_matricula' => $data['t_matricula'],
'number' => rand(100, 9200),
'matricula' => $data['matricula'],
'password' => Hash::make($data['password']),
]);
Mail::to($user->email)->send(new WelcomeMail($user));
return $user;
}
I need to pass that generated value (Number) to the welcome email, then print it in the email template
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire