protected function groupAlias($model, $subBase = 'Events')
    {
        $namespace = getBaseName($model, $subBase);
        $events = [];
        switch($this->request->action) {
            case 'activate':
                $events['activationSuccess'] = \ErenMustafaOzdal\LaravelUserModule\Events\Auth\ActivateSuccess::class;
                $events['activationFail'] = \ErenMustafaOzdal\LaravelUserModule\Events\Auth\ActivateFail::class;
                break;
            case 'not_activate':
                $events['activationRemove'] = \ErenMustafaOzdal\LaravelUserModule\Events\Auth\ActivateRemove::class;
                $events['activationFail'] = \ErenMustafaOzdal\LaravelUserModule\Events\Auth\ActivateFail::class;
                break;
            case 'publish':
                $events['success'] = "{$namespace}\\PublishSuccess";
                $events['fail'] = "{$namespace}\\PublishFail";
                break;
            case 'not_publish':
                $events['success'] = "{$namespace}\\NotPublishSuccess";
                $events['fail'] = "{$namespace}\\NotPublishFail";
                break;
            case 'destroy':
                if ($model == 'App\User' && in_array(Sentinel::getUser()->id,$this->request->get('id'))) {
                    abort(403);
                }
                break;
        }
        $this->setEvents($events);
        $action = camel_case($this->request->action) . 'GroupAction';
        return $this->$action($model);
    }
protected function groupAlias($model, $subBase = 'Events')
    {
        $namespace = getBaseName($model, $subBase);
        $events = [];
        switch($this->request->action) {
            case 'activate':
                $events['activationSuccess'] = \ErenMustafaOzdal\LaravelUserModule\Events\Auth\ActivateSuccess::class;
                $events['activationFail'] = \ErenMustafaOzdal\LaravelUserModule\Events\Auth\ActivateFail::class;
                break;
            case 'not_activate':
                $events['activationRemove'] = \ErenMustafaOzdal\LaravelUserModule\Events\Auth\ActivateRemove::class;
                $events['activationFail'] = \ErenMustafaOzdal\LaravelUserModule\Events\Auth\ActivateFail::class;
                break;
            case 'publish':
                $events['success'] = "{$namespace}\\PublishSuccess";
                $events['fail'] = "{$namespace}\\PublishFail";
                break;
            case 'not_publish':
                $events['success'] = "{$namespace}\\NotPublishSuccess";
                $events['fail'] = "{$namespace}\\NotPublishFail";
                break;
            case 'destroy':
                if ($model == 'App\User' && in_array(Sentinel::getUser()->id,$this->request->get('id'))) {
                    abort(403);
                }
                break;
        }
        $this->setEvents($events);
        $action = camel_case($this->request->action) . 'GroupAction';
        return $this->$action($model);
    }
protected function groupAlias ( $ model , $ subBase = 'Events' ) { $ namespace = getBaseName ( $ model , $ subBase ) ; $ events = [ ] ; switch ( $ this -> request -> action ) { case 'activate' : $ events [ 'activationSuccess' ] = \ ErenMustafaOzdal \ LaravelUserModule \ Events \ Auth \ ActivateSuccess :: class ; $ events [ 'activationFail' ] = \ ErenMustafaOzdal \ LaravelUserModule \ Events \ Auth \ ActivateFail :: class ; break ; case 'not_activate' : $ events [ 'activationRemove' ] = \ ErenMustafaOzdal \ LaravelUserModule \ Events \ Auth \ ActivateRemove :: class ; $ events [ 'activationFail' ] = \ ErenMustafaOzdal \ LaravelUserModule \ Events \ Auth \ ActivateFail :: class ; break ; case 'publish' : $ events [ 'success' ] = "{$namespace}\\PublishSuccess" ; $ events [ 'fail' ] = "{$namespace}\\PublishFail" ; break ; case 'not_publish' : $ events [ 'success' ] = "{$namespace}\\NotPublishSuccess" ; $ events [ 'fail' ] = "{$namespace}\\NotPublishFail" ; break ; case 'destroy' : if ( $ model == 'App\User' && in_array ( Sentinel :: getUser ( ) -> id , $ this -> request -> get ( 'id' ) ) ) { abort ( 403 ) ; } break ; } $ this -> setEvents ( $ events ) ; $ action = camel_case ( $ this -> request -> action ) . 'GroupAction' ; return $ this -> $ action ( $ model ) ; }
group operation alias method

@param \Illuminate\Database\Eloquent\Model $model
@param string $subBase
@return boolean
group operation alias method