Closed yukulelix closed 11 years ago
Hi, how would you pass an email variable to the callback of send function ? For instance :
Message::send(function($message) { $message->to($email); });
Thanks in advance !
Look up use for anonymous functions:
use
function($message) use($email) { // ... }
Hi, how would you pass an email variable to the callback of send function ? For instance :
Thanks in advance !