Role API Update
This commit is contained in:
parent
6ef0b63c36
commit
4a4f6bebdb
1 changed files with 3 additions and 3 deletions
|
@ -114,12 +114,12 @@ class RoleController extends Controller
|
|||
$role = Role::findOrFail($id);
|
||||
|
||||
$request->validate([
|
||||
'name' => 'required|string|max:191',
|
||||
'name' => 'sometimes|string|max:191',
|
||||
'color' => [
|
||||
'required',
|
||||
'sometimes',
|
||||
'regex:/^#([a-f0-9]{6}|[a-f0-9]{3})$/i'
|
||||
],
|
||||
'power' => 'required',
|
||||
'power' => 'sometimes',
|
||||
]);
|
||||
|
||||
if ($request->permissions) {
|
||||
|
|
Loading…
Add table
Reference in a new issue