title: dropdownlist error in Laravel
body: <p>Hi I'm a Dot Net Developer and I'm new to PHP also using Laravel framework
  I have a problem in my dropdownlist, I already did populating the data from database to a dropdownlist but when I'm saving the data the dropdownlist id does not added in the database I just got NULL value.</p>
  
  <p>This is my Controller</p>
  
  <pre><code>public function store(Request $request)
  {
      $this-&gt;validate($request, [
      'title' =&gt; 'required',
      'description' =&gt; 'required'
      ]);
  
      $input = $request-&gt;all();
  
      Task::create($input);
  
      Session::flash('flash_message', 'Task successfully added!');
      return redirect()-&gt;back();
  }
  
  public function create()
  {
       $category = Category::lists('Category', 'Id'); 
       return View('tasks.create')-&gt;with('category', $category);
  }
  </code></pre>
  
  <p>And this in my View</p>
  
  <pre><code>&lt;div class="form-group"&gt; 
  {!! Form::label('cagetory_id', 'Category:', ['class' =&gt; 'control-label']) !!} 
  {!! Form::select('cagetory_id', $category, null, ['class' =&gt; 'form-control']) !!}
  &lt;/div&gt;
  </code></pre>
  
  <p>I'm using Laravel 5, Thank you in advance to those who can help me :)</p>