I would like to pass some extra data to my laravel Mail class via Eloquent object and I was trying the following which do not works
$user->push($tmpPass);
//than I tried put
$user->put('index', $tmpPass);
var_dump($user);
die;
Mail::to($user->email)->send(new UserCreated($user));
Is the trying on the wrong track? How do I do this properly?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire