public function removeParticipant($userId)
    {
        $userIds = is_array($userId) ? $userId : (array) func_get_args();

        Models::participant()->where('thread_id', $this->id)->whereIn('user_id', $userIds)->delete();
    }
public function removeParticipant($userId)
    {
        $userIds = is_array($userId) ? $userId : (array) func_get_args();

        Models::participant()->where('thread_id', $this->id)->whereIn('user_id', $userIds)->delete();
    }
public function removeParticipant ( $ userId ) { $ userIds = is_array ( $ userId ) ? $ userId : ( array ) func_get_args ( ) ; Models :: participant ( ) -> where ( 'thread_id' , $ this -> id ) -> whereIn ( 'user_id' , $ userIds ) -> delete ( ) ; }
Remove participants from thread.

@param array|mixed $userId

@return void
Remove participants from thread .