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
7856e47d
Commit
7856e47d
authored
May 29, 2023
by
Edgarvital
Browse files
Merge branch 'master' of
https://github.com/Edgarvital/submeta
parents
f0642d46
4a80512d
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/AdministradorController.php
View file @
7856e47d
...
...
@@ -114,7 +114,7 @@ class AdministradorController extends Controller
// $participantes = User::whereIn('id', $participantesUsersIds)->get();
return
view
(
'administrador.analisar'
)
->
with
([
'trabalhos'
=>
$trabalhos
->
paginate
(
20
),
'trabalhos'
=>
$trabalhos
->
paginate
(
9999
),
'evento'
=>
$evento
,
'funcaoParticipantes'
=>
$funcaoParticipantes
,
'column'
=>
$request
->
column
,
...
...
app/Http/Controllers/UserController.php
View file @
7856e47d
...
...
@@ -113,8 +113,8 @@ class UserController extends Controller
if
(
$user
->
tipo
==
'participante'
)
{
$validated
=
$request
->
validate
([
'name'
=>
[
'required'
,
'string'
,
'max:255'
],
'email'
=>
[
'required_if:alterarSenhaCheckBox,on'
,
'string'
,
'email'
,
'max:255'
,
Rule
::
unique
(
'users'
)
->
ignore
(
$user
->
id
)],
'password'
=>
[
'required_if:alterarSenhaCheckBox,on'
,
'string'
,
'min:8'
,
'confirmed'
],
//
'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
)],
'celular'
=>
[
'required'
,
'string'
,
'telefone'
],
...
...
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