Contact logic - all in one! #39
Unanswered
rathorevaibhav
asked this question in
Software Principles
Replies: 2 comments
public function storeContact(ContactRequest $request)
{
$validated = $request->validate();
Contact::create($validated);
Mail::to('dlf-foundation@dlf.in')->send(new ContactMail($validated));
return redirect()->route('contact.index')->with([
'success' => 'Submitted successfully!'
]);
}
|
0 replies
|
The |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Questions
In the following PHP/Laravel code:
All reactions