Exemplo n.º 1
0
 public function send(QuestionRequest $request)
 {
     $auction = Auction::getAuctionForId($request->artwork_id);
     $name = $request->name;
     $email = $request->email;
     $question = $request->question;
     Mail::send('emails.contact', ['name' => $name, 'question' => $question, 'auction' => $auction], function ($message) use($email, $name) {
         $message->from(env('MAIL_FROM'), env('MAIL_NAME'));
         $message->to($email, $name)->subject('Thanks for contacting Landoretti!');
     });
     return Redirect::route('home');
 }