Created
July 30, 2014 05:40
-
-
Save sejr/1615a60a509d117afb75 to your computer and use it in GitHub Desktop.
Contact form error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Route::get('contact', 'PageController@contact'); | |
| Route::post('contact', function() { | |
| $data = Input::all(); | |
| Mail::send('emails.contact', $data, function($message) | |
| { | |
| $message->from($data['email'] , $data['username']); | |
| $message->to('connect@creepr.co', 'The Creepr Network')->subject('Creepr Support Request'); | |
| }); | |
| return View::make('/'); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment