Reputation: 5355
sorry for this stupid question, however, I think my wires get crossed.
I would like to print the parameters $m
, from the following function in my log
method:
Mail::send('emails.forgot-password', $data, function($m) use ($user)
{
$m->to($user->email, $user->first_name . ' ' . $user->last_name);
$m->subject('Account Password Recovery');
Log::info('Mail send.');
});
How can I do that?
I appreciate your answer!
Upvotes: 0
Views: 40
Reputation: 60058
You could do either
Log::info('Mail send. JSON: '.json_encode($m));
or
Log::info('Mail send. Data: '.var_export($m, true));
or
Log::info('Mail send. Message To: '.$user->email);
// and just add whatever variables you want
Upvotes: 1