title: How to store the value of a select in a variable in laravel
body: <p>Hello i´m new in laravel. I dont know how to store the value of a select in a variable. 
  This is how i do it in php. But how in laravel?
  Thank you for help :)</p>
  
  <pre><code>&lt;?php
  session_start();
  
  //Database
  $servername = "127.0.0.1";
  $username = "root";
  $password = "root";
  
  //Connection to Database
  $conn = new mysqli($servername, $username, $password);
  
  //Connection Test
  if(!$conn) {
  echo "Not connected to Server"
  }
  if(!mysqli_select_db($conn, 'test')){
  echo "No connection to Database";
  }
  
  //store data in variable
  $vorname = $_POST['name'];
  $name = $_POST['age'];
  ?&gt;
  
  &lt;!--Form Select--&gt;
  &lt;form action="test.php" method="post"&gt;
  &lt;select name="name"&gt;
      &lt;option value="Lisa"&gt;&lt;/option&gt;
      &lt;option value="Laura"&gt;&lt;/option&gt;
  &lt;/select&gt;
  &lt;select name="age"&gt;
      &lt;option value="20"&gt;20&lt;/option&gt;
      &lt;option value="21"&gt;21&lt;/option&gt;
  &lt;/select&gt;
  &lt;button type="submit"&gt;Sent&lt;/button&gt;
  &lt;/form&gt;
  
  &lt;?php
  $query = "SELECT * FROM test WHERE name = $name AND age = $age";
  $profile = $conn-&gt;query($query);
  ?&gt;
  </code></pre>
  
  <p>I want a Form with a select and the selected option should be stored in a variable.
  Then checked in the database. And then show the results.
  i dont know how to do thisin laravel.
  thanks :)</p>