/**
  * Clear the cache.
  *
  * @param  null|int|\Illuminate\Database\Eloquent\Model  $user
  * @return $this
  */
 public function refresh($user = null)
 {
     if (!is_null($user)) {
         return $this->refreshFor($user);
     }
     if ($this->cache instanceof TaggedCache) {
         $this->cache->flush();
         return $this;
     }
     foreach (Models::user()->lists('id') as $id) {
         $this->refreshFor($id);
     }
     return $this;
 }
 /**
  * Get the table name for the user model.
  *
  * @return string
  */
 protected function users()
 {
     return Models::user()->getTable();
 }