Skip to content

Commit

Permalink
m
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-tharwat committed Aug 25, 2024
1 parent bfa3f48 commit b532a98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Backend/BackendUserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function store(Request $request)
'roles'=>"required|array",
'roles.*'=>"required|exists:roles,id",
]);
$user->syncRoles($request->roles);
$user->syncRoles(array_map('intval',$request->roles));
}

if($request->hasFile('avatar')){
Expand Down

0 comments on commit b532a98

Please sign in to comment.