title: Save form data in laravel
body: <p>Right now I have a form with gender, options and user_id.
  My <code>public function store (Request $request)</code> looks like this :</p>
  
  <pre><code>public function store(Request $request)
  {
      $task = new Appointment;
      $task-&gt;gender = $request-&gt;gender;
      $task-&gt;options = $request-&gt;options;
      $task-&gt;user_id = $request-&gt;user_id;
      $task-&gt;save();
  }
  </code></pre>
  
  <p>This works completely fine but this is just 3 fields ?!
  Eventually I want my forms 5 times bigger. My function will be huge. Is there a way to save everything with less code?</p>
  
  <p>I found this : <code>$data = Input::all();</code>
  This gets all the data but I don't know how to save it in the database.</p>