remove() public static method

public static remove ( $topics, $user )
Exemplo n.º 1
0
 public function unwatchMulti()
 {
     $topicIds = explode(',', Request::input('topic_ids'));
     $topics = Topic::whereIn('topic_id', $topicIds);
     $unwatchTopics = $topics->get()->filter(function ($t) {
         return priv_check('ForumTopicWatchRemove', $t)->can();
     });
     TopicWatch::remove($unwatchTopics, Auth::user());
     return ['message' => trans('forum.topics.watch.watched-0')];
 }