pass the variable to closure with 'use ($request)'
........
function($message) use ($request)
{
$message->from($request->get('email'))->to('joe@bloggs.com', 'Admin')->subject('Enquiry from website');
});
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.