title: Laravel pluck Array to string conversion
body: <p>I am create complaint For that while inserting department for their complaint  I am using pluck() method to retrieve data from department table and display complaint in select dropdown as array but the problem is it is not working as it says </p>
  
  <blockquote>
    <p>Array to string conversion (View: C:\xampp\htdocs\test\resources\views\complaint\create.blade.php)</p>
  </blockquote>
  
  <p>ComplaintController</p>
  
  <pre><code> $department = Department::pluck('name','id')-&gt;all();
  
      return view('complaint.create',compact('department'));
  </code></pre>
  
  <p>create.blade.php</p>
  
  <pre><code>&lt;strong&gt;Department : &lt;/strong&gt;
  {!! Form::select('dep_id',$department,null,['class'=&gt;'form-control']) !!}
  </code></pre>
  
  <p>Please help!</p>