app/Http/Controllers/SiteController.php
/**
     *
     * Send messages from site contact form.
     *
     * @param EnterpriseRequest $request
     *
     * @return Response
     * 
     */
Send messages from site contact form.

@return Response
Send messages from site contact form . @return Response
public function sendMessageContactForm(ContactFormRequest $request)
    {
        Mail::to('agradecaaquicontato@gmail.com')->send(new SiteContactFormMail($request->name, $request->email, $request->message));
        return view('site.contact')->withSuccess('E-mail enviado com sucesso!');
    }
public function sendMessageContactForm ( ContactFormRequest $ request ) { Mail :: to ( 'agradecaaquicontato@gmail.com' ) -> send ( new SiteContactFormMail ( $ request -> name , $ request -> email , $ request -> message ) ) ; return view ( 'site.contact' ) -> withSuccess ( 'E-mail enviado com sucesso!' ) ; }
Send messages from site contact form.
Send messages from site contact form .