title: Laravel use of concat with pluck method
body: <p>I am using Laravel.5.3 and below is my query </p>
  
  <pre><code>$ProjectManagers = Employees::where("designation" , 1)
  -&gt;pluck(DB::raw('CONCAT(first_name," ",last_name) AS name'),'id');
  </code></pre>
  
  <p>which throws an error that </p>
  
  <blockquote>
    <p>Illegal offset type in isset or empty</p>
  </blockquote>
  
  <p>May i know if this is the correct method  ?</p>
  
  <p>if i dont use contact and use like </p>
  
  <pre><code>$ProjectManagers = Employees::where("designation" , 1)-&gt;pluck('first_name','id');
  </code></pre>
  
  <p>which is working correct and giving me result </p>
  
  <pre><code>Illuminate\Support\Collection Object
  (
      [items:protected] =&gt; Array
          (
              [8] =&gt; Punit
          )
  
  )
  </code></pre>
  
  <p><strong>Expected Result :</strong></p>
  
  <pre><code>Illuminate\Support\Collection Object
  (
      [items:protected] =&gt; Array
          (
              [8] =&gt; Punit Gajjar
          )
  
  )
  </code></pre>
  
  <p>where first name and last name are concatenated. </p>