php - Add parameters to logger -
sorry stupid question, however, think wires crossed.
i print parameters $m
, next function in log
method:
mail::send('emails.forgot-password', $data, function($m) utilize ($user) { $m->to($user->email, $user->first_name . ' ' . $user->last_name); $m->subject('account password recovery'); log::info('mail send.'); });
how can that?
i appreciate answer!
you 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); // , add together whatever variables want
php laravel-4
No comments:
Post a Comment