diff --git a/app/Livewire/Forms/Studio/Master/UserForm.php b/app/Livewire/Forms/Studio/Master/UserForm.php index 100c29a..56d9bce 100644 --- a/app/Livewire/Forms/Studio/Master/UserForm.php +++ b/app/Livewire/Forms/Studio/Master/UserForm.php @@ -139,7 +139,7 @@ public function store() $user->outlets()->attach($this->outlet_ids); - $user->assignRole($this->role_ids); + $user->assignRole(array_map('intval', $this->role_ids)); }); }