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