function signup() { $resp = Response::all(); $email = $resp[0]['email']; Mail::send('emails.userSignup', ['email' => $email], function ($m) use($resp) { $m->from('*****@*****.**', 'Beta Signup'); $m->to('*****@*****.**', 'Test Client')->subject('User Requests Access'); }); return redirect('/'); }