getRoles() public method

Get the given authority's roles.
public getRoles ( Model $authority ) : Collection
$authority Illuminate\Database\Eloquent\Model
return Illuminate\Support\Collection
 /**
  * Get the user's roles from the given cache instance through the clipboard.
  *
  * @param  \Illuminate\Cache\ArrayStore  $cache
  * @param  \Illuminate\Database\Eloquent\Model  $user
  * @return array
  */
 protected function getRoles(ArrayStore $cache, Model $user)
 {
     $clipboard = new CachedClipboard($cache);
     return $clipboard->getRoles($user)->all();
 }