original_string: public function store(Request $request, CompanyRepository $repository)
      {
          $data = $request->validate([
              'name' => 'required',
              'email' => 'required|email',
              'message' => 'required'
          ]);
  
          $company = $repository->default();
  
          Mail::to($company->email)->send(new SendContactEmail($company, $data));
  
          return redirect()
              ->route('contact')
              ->with('message', trans('company.contact.message'));
      }
code: public function store(Request $request, CompanyRepository $repository)
      {
          $data = $request->validate([
              'name' => 'required',
              'email' => 'required|email',
              'message' => 'required'
          ]);
  
          $company = $repository->default();
  
          Mail::to($company->email)->send(new SendContactEmail($company, $data));
  
          return redirect()
              ->route('contact')
              ->with('message', trans('company.contact.message'));
      }
code_tokens: public function store ( Request $ request , CompanyRepository $ repository ) { $ data = $ request -> validate ( [ 'name' => 'required' , 'email' => 'required|email' , 'message' => 'required' ] ) ; $ company = $ repository -> default ( ) ; Mail :: to ( $ company -> email ) -> send ( new SendContactEmail ( $ company , $ data ) ) ; return redirect ( ) -> route ( 'contact' ) -> with ( 'message' , trans ( 'company.contact.message' ) ) ; }
docstring: Sends the contact us email.
  
  @param  Request $request
  @param  CompanyRepository $repository
  
  @return void
docstring_tokens: Sends the contact us email .