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!'
]);
}
|
Beta Was this translation helpful? Give feedback.
0 replies
-
The |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Questions
In the following PHP/Laravel code:
Beta Was this translation helpful? Give feedback.
All reactions