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
bc40cdff
Commit
bc40cdff
authored
1 year ago
by
unknown
Browse files
Options
Download
Email Patches
Plain Diff
correção temporaria para validação do RG ao editar o perfil do usuário
parent
1df47ff2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/Http/Controllers/UserController.php
+1
-1
app/Http/Controllers/UserController.php
with
1 addition
and
1 deletion
+1
-1
app/Http/Controllers/UserController.php
View file @
bc40cdff
...
@@ -116,7 +116,7 @@ class UserController extends Controller
...
@@ -116,7 +116,7 @@ class UserController extends Controller
// 'email' => ['required_if:alterarSenhaCheckBox,on', 'string', 'email', 'max:255', Rule::unique('users')->ignore($user->id)],
// 'email' => ['required_if:alterarSenhaCheckBox,on', 'string', 'email', 'max:255', Rule::unique('users')->ignore($user->id)],
// 'password' => ['required_if:alterarSenhaCheckBox,on', 'string', 'min:8', 'confirmed'],
// 'password' => ['required_if:alterarSenhaCheckBox,on', 'string', 'min:8', 'confirmed'],
'cpf'
=>
[
'required'
,
'cpf'
,
Rule
::
unique
(
'users'
)
->
ignore
(
$user
->
id
)],
'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'
],
'celular'
=>
[
'required'
,
'string'
,
'telefone'
],
'instituicao'
=>
[
'required_if:instituicaoSelect,Outra'
,
'max:255'
],
'instituicao'
=>
[
'required_if:instituicaoSelect,Outra'
,
'max:255'
],
'instituicaoSelect'
=>
[
'required_without:instituicao'
],
'instituicaoSelect'
=>
[
'required_without:instituicao'
],
...
...
This diff is collapsed.
Click to expand it.
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