title: Send mail with laravel using mail function php
body: <p>I use mail php function for sending mail with laravel.
  My route:</p>
  
  <pre><code>Route::post('/mailsend', 'Home@contact');
  </code></pre>
  
  <p>My controller:</p>
  
  <pre><code>public function contact(Request $request){
  
          $to = 'contact@email.com';
          $from = $request-&gt;input('email');
          $subject = $request-&gt;input('subject');
          $message = $request-&gt;input('message');
          $headers = 'From: '.$from . "\r\n" .
          'Reply-To: '.$from . "\r\n" .
          'X-Mailer: PHP/' . phpversion();
  
          mail($to, $subject, $message, $headers);
  
  
          return view('contact');
      }
  </code></pre>
  
  <p>my problem, I can't get my values input in post</p>
  
  <p><a href="https://i.stack.imgur.com/bXhFT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bXhFT.png" alt="enter image description here"></a></p>
  
  <p>Thanks</p>