This is my code using to send an email
Route::post('/mail/send', [
'EmailController@send',
]);
in EmailController this is the send action
public function send(Request $request)
{
$data = $request->all();
$data['email'] = Input::get('email');
$data['name'] = Input::get('name');
$obj = new \stdClass();
$obj->attr = 'Hello';
Mail::to("dev@mail.com")->send(new WelcomeEmail($obj));
}
getting a error as Function () does not exist
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2wdvdXo
via IFTTT
Aucun commentaire:
Enregistrer un commentaire