diff --git a/database/migrations/2018_07_10_173148_add_not_nullable_setting_malaysia_bank_table.php b/database/migrations/2018_07_10_173148_add_not_nullable_setting_malaysia_bank_table.php new file mode 100644 index 00000000..1deef39e --- /dev/null +++ b/database/migrations/2018_07_10_173148_add_not_nullable_setting_malaysia_bank_table.php @@ -0,0 +1,36 @@ +string('company_name')->nullable(false)->change(); + $table->string('bank_name')->nullable(false)->change(); + $table->string('acc_no')->nullable()->change(); // reference key at select active bank + $table->string('bank_address')->nullable(false)->change(); + $table->string('swift')->nullable(false)->change(); + $table->string('cnap')->nullable(false)->change(); + $table->string('bank_branch')->nullable(false)->change(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + // + } +} diff --git a/resources/assets/js/app.js b/resources/assets/js/app.js index f2a29c9d..5b2beb01 100644 --- a/resources/assets/js/app.js +++ b/resources/assets/js/app.js @@ -11,7 +11,25 @@ import '~/plugins' import '~/components' import VeeValidate from 'vee-validate'; -Vue.use(VeeValidate); +const config = { + errorBagName: 'errors', // change if property conflicts. + fieldsBagName: 'fields', + delay: 0, + // locale: 'zh_CN', + strict: true, + enableAutoClasses: false, + classNames: { + touched: 'touched', // the control has been blurred + untouched: 'untouched', // the control hasn't been blurred + valid: 'valid', // model is valid + invalid: 'invalid', // model is invalid + pristine: 'pristine', // control has not been interacted with + dirty: 'dirty' // control has been interacted with + }, + events: 'blur', + inject: true +}; +Vue.use(VeeValidate, config); Vue.config.productionTip = false diff --git a/resources/assets/js/pages/auth/register.vue b/resources/assets/js/pages/auth/register.vue index 51355f13..272c25f0 100644 --- a/resources/assets/js/pages/auth/register.vue +++ b/resources/assets/js/pages/auth/register.vue @@ -59,8 +59,6 @@ - -