title: Use collection->get() instead of collection->pluck()
body: <p>I am using <a href="https://github.com/spatie/laravel-permission" rel="nofollow">laravel-permission</a> for managing roles and displaying content. Per the docs you can retrieve a users roles by using <code>$roles = $user-&gt;roles()-&gt;pluck('name')</code>. My problem is that the data returned is <code>["admin"]</code> rather than just <code>admin</code>. I was reviewing the collections methods and it looked like <code>get('name')</code> would return what I was looking for. When I try to use the following command <code>Auth::user()-&gt;roles()-&gt;get('name')</code> I get</p>
  
  <pre><code>1/1
  ErrorException in BelongsToMany.php line 360:
  Argument 1 passed to Illuminate\Database\Eloquent\Relations\BelongsToMany::getSelectColumns() must be of the type array, string given
  </code></pre>
  
  <p>It seems to me like the <code>get()</code> method is expecting an array however, I'm trying to reference an item in the array. The raw output of <code>Auth::user()-&gt;roles()-&gt;get()</code> is <code>[{"id":1,"name":"admin","created_at":"2016-03-10 06:24:47","updated_at":"2016-03-10 06:24:47","pivot":{"user_id":1,"role_id":1}}]</code></p>
  
  <p>I have found a workaround for pulling the correct content, but it is using regex for removing the unwanted characters that are included in the <code>pluck()</code> method. </p>
  
  <pre><code>preg_replace('/\W/i','', Auth::user()-&gt;roles()-&gt;pluck('name'))
  </code></pre>
  
  <p>It seems like I'm missing something or approaching using the <code>get()</code> method incorrectly. Any advice is appreciated.</p>