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
4a80512d
Unverified
Commit
4a80512d
authored
May 28, 2023
by
Edgar Vinicius Carvalho Vital
Committed by
GitHub
May 28, 2023
Browse files
Merge branch 'lmtsufape:master' into master
parents
56b7944e
37ef785e
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/AdministradorController.php
View file @
4a80512d
...
@@ -114,7 +114,7 @@ class AdministradorController extends Controller
...
@@ -114,7 +114,7 @@ class AdministradorController extends Controller
// $participantes = User::whereIn('id', $participantesUsersIds)->get();
// $participantes = User::whereIn('id', $participantesUsersIds)->get();
return
view
(
'administrador.analisar'
)
->
with
([
return
view
(
'administrador.analisar'
)
->
with
([
'trabalhos'
=>
$trabalhos
->
paginate
(
20
),
'trabalhos'
=>
$trabalhos
->
paginate
(
9999
),
'evento'
=>
$evento
,
'evento'
=>
$evento
,
'funcaoParticipantes'
=>
$funcaoParticipantes
,
'funcaoParticipantes'
=>
$funcaoParticipantes
,
'column'
=>
$request
->
column
,
'column'
=>
$request
->
column
,
...
...
app/Http/Controllers/UserController.php
View file @
4a80512d
...
@@ -113,8 +113,8 @@ class UserController extends Controller
...
@@ -113,8 +113,8 @@ class UserController extends Controller
if
(
$user
->
tipo
==
'participante'
)
{
if
(
$user
->
tipo
==
'participante'
)
{
$validated
=
$request
->
validate
([
$validated
=
$request
->
validate
([
'name'
=>
[
'required'
,
'string'
,
'max:255'
],
'name'
=>
[
'required'
,
'string'
,
'max:255'
],
'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'
],
...
...
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