protected function notPublishGroupAction($class)
    {
        try {
            if ( ! $class::whereIn('id', $this->request->id)->update(['is_publish' => false])) {
                throw new UpdateException($this->request->id, 'group not not published');
            }
            event(new $this->events['success']($this->request->id));
            return true;
        } catch (UpdateException $e) {
            event(new $this->events['fail']($e->getDatas()));
            return false;
        }
    }
protected function notPublishGroupAction($class)
    {
        try {
            if ( ! $class::whereIn('id', $this->request->id)->update(['is_publish' => false])) {
                throw new UpdateException($this->request->id, 'group not not published');
            }
            event(new $this->events['success']($this->request->id));
            return true;
        } catch (UpdateException $e) {
            event(new $this->events['fail']($e->getDatas()));
            return false;
        }
    }
protected function notPublishGroupAction ( $ class ) { try { if ( ! $ class :: whereIn ( 'id' , $ this -> request -> id ) -> update ( [ 'is_publish' => false ] ) ) { throw new UpdateException ( $ this -> request -> id , 'group not not published' ) ; } event ( new $ this -> events [ 'success' ] ( $ this -> request -> id ) ) ; return true ; } catch ( UpdateException $ e ) { event ( new $ this -> events [ 'fail' ] ( $ e -> getDatas ( ) ) ) ; return false ; } }
not publish group action

@param $class
@return boolean
not publish group action