Example #1
0
 /**
  * Drop a reported comment. This is done by dropping a relationship b/w the user and the comment.
  *
  * @param  int        $comment_id
  * @param  \Fahita\Contracts\UserInterface $user
  *
  * @return bool
  */
 public function dropReport($comment_id, UserInterface $user)
 {
     return $this->set->remove($this->getReportsKey($comment_id), $user->getKey());
 }
Example #2
0
 public function start(UserInterface $user)
 {
     $this->cache->put($this->getCacheKey($user->getAccessToken()), $user->getKey(), Config::get('session.lifetime'));
 }