title: Laravel: Display data in DropDown from database
body: <p>I was developing a project with Laravel and want to use dropdownlist and populate it with data from database please help. Here is the code that I use:</p>
  
  <p>Controller:</p>
  
  <pre><code> public function create()
   {
      $items = Income::pluck('name', 'id');
      return view ('IncomeExpense.create');
   }
  </code></pre>
  
  <p>View:</p>
  
  <pre><code> &lt;div class="form-group"&gt;
       {{Form::label('', 'Category')}}
       {{Form::select('IncomeExpense',null, $items,['class'=&gt;'form-control',
       'placeholder'=&gt;'Choose category'])}}
   &lt;/div&gt;
  </code></pre>