fix: showing success message on deleting

This commit is contained in:
paymin 2020-10-08 00:48:02 +07:00
parent c2db69289f
commit e1a78f28a5
3 changed files with 3 additions and 2 deletions

View File

@ -170,7 +170,7 @@ class AddressController extends Controller
session()->flash('success', trans('admin::app.customers.addresses.success-delete')); session()->flash('success', trans('admin::app.customers.addresses.success-delete'));
return redirect()->back(); return redirect()->route($this->_config['redirect']);
} }
/** /**

View File

@ -938,6 +938,7 @@ return [
'gender' => 'Gender', 'gender' => 'Gender',
'email' => 'Email', 'email' => 'Email',
'date_of_birth' => 'Date of Birth', 'date_of_birth' => 'Date of Birth',
'date_of_birth_placeholder' => 'yyyy-mm-dd',
'phone' => 'Phone', 'phone' => 'Phone',
'customer_group' => 'Customer Group', 'customer_group' => 'Customer Group',
'save-btn-title' => 'Save Customer', 'save-btn-title' => 'Save Customer',

View File

@ -72,7 +72,7 @@
<div class="control-group" :class="[errors.has('date_of_birth') ? 'has-error' : '']"> <div class="control-group" :class="[errors.has('date_of_birth') ? 'has-error' : '']">
<label for="dob">{{ __('admin::app.customers.customers.date_of_birth') }}</label> <label for="dob">{{ __('admin::app.customers.customers.date_of_birth') }}</label>
<input type="date" class="control" name="date_of_birth" v-validate="" value="{{ old('date_of_birth') }}" data-vv-as="&quot;{{ __('admin::app.customers.customers.date_of_birth') }}&quot;"> <input type="date" class="control" name="date_of_birth" v-validate="" value="{{ old('date_of_birth') }}" placeholder="{{ __('admin::app.customers.customers.date_of_birth_placeholder') }}" data-vv-as="&quot;{{ __('admin::app.customers.customers.date_of_birth') }}&quot;">
<span class="control-error" v-if="errors.has('date_of_birth')">@{{ errors.first('date_of_birth') }}</span> <span class="control-error" v-if="errors.has('date_of_birth')">@{{ errors.first('date_of_birth') }}</span>
</div> </div>