mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-13 00:07:21 +00:00
Setup pint & run code style fix
This commit is contained in:
@@ -28,14 +28,14 @@ class RoleRequest extends FormRequest
|
||||
'name' => [
|
||||
'required',
|
||||
'string',
|
||||
Rule::unique('roles')->where('scope', $this->header('company'))
|
||||
Rule::unique('roles')->where('scope', $this->header('company')),
|
||||
],
|
||||
'abilities' => [
|
||||
'required'
|
||||
'required',
|
||||
],
|
||||
'abilities.*' => [
|
||||
'required'
|
||||
]
|
||||
'required',
|
||||
],
|
||||
];
|
||||
|
||||
if ($this->getMethod() == 'PUT') {
|
||||
@@ -44,7 +44,7 @@ class RoleRequest extends FormRequest
|
||||
'string',
|
||||
Rule::unique('roles')
|
||||
->ignore($this->route('role')->id, 'id')
|
||||
->where('scope', $this->header('company'))
|
||||
->where('scope', $this->header('company')),
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user