mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-02-02 11:39:19 +01:00
Change GroupStore request validation
This commit is contained in:
parent
cb605cabbd
commit
9646afd2cc
@ -28,7 +28,7 @@ public function rules()
|
||||
return [
|
||||
'name' => [
|
||||
'required',
|
||||
'alpha_dash',
|
||||
'regex:/^[a-zA-Z0-9\s\-_]+$/',
|
||||
'max:32',
|
||||
Rule::unique('groups')->where(fn ($query) => $query->where('user_id', $this->user()->id)),
|
||||
],
|
||||
|
@ -105,9 +105,6 @@ public function provideInvalidData() : array
|
||||
[[
|
||||
'name' => true, // string
|
||||
]],
|
||||
[[
|
||||
'name' => 8, // string
|
||||
]],
|
||||
[[
|
||||
'name' => 'mmmmmmoooooorrrrrreeeeeeettttttthhhhhhaaaaaaannnnnn32cccccchhhhhaaaaaarrrrrrsssssss', // max:32
|
||||
]],
|
||||
|
Loading…
Reference in New Issue
Block a user