use route names
This commit is contained in:
@ -17,7 +17,7 @@ class ShowSetting
|
||||
$event->modules->settings['offline-payments'] = [
|
||||
'name' => trans('offline-payments::general.name'),
|
||||
'description' => trans('offline-payments::general.description'),
|
||||
'url' => 'offline-payments/settings',
|
||||
'url' => route('settings.module.edit', ['alias' => 'offline-payments']),
|
||||
'icon' => 'fas fa-credit-card',
|
||||
];
|
||||
}
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
{!! Form::open([
|
||||
'id' => 'offline-payments',
|
||||
'route' => 'offline-payments.update',
|
||||
'route' => ['settings.module.update', 'offline-payments'],
|
||||
'@submit.prevent' => 'onSubmit',
|
||||
'@keydown' => 'form.errors.clear($event.target.name)',
|
||||
'files' => true,
|
||||
|
Reference in New Issue
Block a user