Update Module Users

- Fix Form Validation for Check Password, if null password not changed
- Update Validation NIK on Update user data
- Fix Role Not Assign if value is id not role name
- Change User Migration, change password field to nullable
This commit is contained in:
Daeng Deni Mardaeni
2024-08-28 09:09:29 +07:00
parent 18b8ed5344
commit 47f248c7b3
3 changed files with 12 additions and 8 deletions

View File

@@ -159,7 +159,7 @@
</div>
</div>
<div class="switch switch-sm">
<input {{ in_array($role->name,Auth()->user()->roles->pluck('name')->toArray()) ? 'checked' : '' }} name="roles" type="radio" value="{{ $role->id }}">
<input {{ in_array($role->name,Auth()->user()->roles->pluck('name')->toArray()) ? 'checked' : '' }} name="roles" type="radio" value="{{ $role->name }}">
</div>
</div>
@endforeach