Support the ongoing development of Laravel.io →
posted 8 years ago
Requests
Last updated 1 year ago.
0

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');
});
Last updated 8 years ago.
0

Fantastic, thank you so much.

Last updated 8 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.