Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Walter Felipe
submeta
Commits
b65e96c3
Unverified
Commit
b65e96c3
authored
Jun 26, 2023
by
Antônio Durval
Committed by
GitHub
Jun 26, 2023
Browse files
Merge pull request #917 from antonioDurval/master
correção temporaria para validação do RG ao editar o perfil do usuário
parents
40dd7164
bc40cdff
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/UserController.php
View file @
b65e96c3
...
...
@@ -116,7 +116,7 @@ class UserController extends Controller
// 'email' => ['required_if:alterarSenhaCheckBox,on', 'string', 'email', 'max:255', Rule::unique('users')->ignore($user->id)],
// 'password' => ['required_if:alterarSenhaCheckBox,on', 'string', 'min:8', 'confirmed'],
'cpf'
=>
[
'required'
,
'cpf'
,
Rule
::
unique
(
'users'
)
->
ignore
(
$user
->
id
)],
'rg'
=>
[
'required'
,
Rule
::
unique
(
'participantes'
)
->
ignore
(
$user
->
participantes
->
first
()
->
id
)],
//
'rg' => ['required', Rule::unique('participantes')->ignore($user->participantes->first()->id)],
'celular'
=>
[
'required'
,
'string'
,
'telefone'
],
'instituicao'
=>
[
'required_if:instituicaoSelect,Outra'
,
'max:255'
],
'instituicaoSelect'
=>
[
'required_without:instituicao'
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment