diff --git a/resources/views/form/role-checkboxes.blade.php b/resources/views/form/role-checkboxes.blade.php index ab6265264..580b332f3 100644 --- a/resources/views/form/role-checkboxes.blade.php +++ b/resources/views/form/role-checkboxes.blade.php @@ -3,10 +3,10 @@ @foreach($roles as $role)
@include('components.custom-checkbox', [ - 'name' => $name . '[' . $role->name . ']', + 'name' => $name . '[' . str_replace('.', 'DOT', $role->name) . ']', 'label' => $role->display_name, 'value' => $role->id, - 'checked' => old($name . '.' . $role->name) || (!old('name') && isset($model) && $model->hasRole($role->name)) + 'checked' => old($name . '.' . str_replace('.', 'DOT', $role->name)) || (!old('name') && isset($model) && $model->hasRole($role->name)) ])
@endforeach