src/Requests/GroupRequest.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        $this->rules += config('user.group_meta.attributes');
        if ($this->user_group) {
            $this->rules['system_name'] .= ',system_name,' . $this->user_group->id;
        } else {
        }
        return $this->rules;
    }
public function rules ( ) { $ this -> rules += config ( 'user.group_meta.attributes' ) ; if ( $ this -> user_group ) { $ this -> rules [ 'system_name' ] .= ',system_name,' . $ this -> user_group -> id ; } else { } return $ this -> rules ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .
//update Group //create Group