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
8ed0d272
Commit
8ed0d272
authored
Jun 05, 2023
by
unknown
Browse files
O formulario para ações afirmativas só é obrigatorio para PIBIC
parent
6d5ea49a
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Requests/StoreTrabalho.php
View file @
8ed0d272
...
...
@@ -112,7 +112,9 @@ class StoreTrabalho extends FormRequest
$rules
[
'justificativaAutorizacaoEtica'
]
=
[
Rule
::
requiredIf
(
$this
->
autorizacaoFlag
==
'nao'
)];
$rules
[
'pontuacaoPlanilha'
]
=
[
'required'
,
'string'
];
$rules
[
'linkGrupoPesquisa'
]
=
[
'required'
,
'string'
];
$rules
[
'preenchimentoFormFlag'
]
=
[
Rule
::
in
([
'sim'
]),
'required'
];
if
(
$evento
->
tipo
==
"PIBIC"
){
$rules
[
'preenchimentoFormFlag'
]
=
[
Rule
::
in
([
'sim'
]),
'required'
];
}
$rules
[
'anexo_acao_afirmativa'
]
=
[
Rule
::
requiredIf
(
$this
->
radioAcoesAfirmativas
==
'sim'
)];
}
...
...
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