/**
* 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();
}