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
f46285e9
Commit
f46285e9
authored
Jul 01, 2022
by
S-Nathalia
Browse files
Adição da restrição de submeter um projeto com todas as infos
parent
d89fde29
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/Http/Requests/StoreTrabalho.php
View file @
f46285e9
...
...
@@ -62,6 +62,7 @@ class StoreTrabalho extends FormRequest
}
if
(
$this
->
has
(
'rascunho'
))
{
$rules
=
[];
return
$rules
;
}
else
{
$evento
=
Evento
::
find
(
$this
->
editalId
);
...
...
@@ -123,4 +124,4 @@ class StoreTrabalho extends FormRequest
'nomePlanoTrabalho.*.required'
=>
'O :attribute é obrigatório'
,
];
}
}
}
\ No newline at end of file
app/Http/Requests/UpdateTrabalho.php
View file @
f46285e9
...
...
@@ -56,6 +56,7 @@ class UpdateTrabalho extends FormRequest
$rules
[
'total_periodos.'
.
$value
]
=
[
'required'
,
'string'
];
$rules
[
'media_do_curso.'
.
$value
]
=
[
'required'
,
'string'
];
$rules
[
'nomePlanoTrabalho.'
.
$value
]
=
[
'required'
,
'string'
];
$rules
[
'anexoPlanoTrabalho.'
.
$value
]
=
[
'required'
,
'mimes:pdf'
];
}
}
...
...
@@ -67,7 +68,7 @@ class UpdateTrabalho extends FormRequest
return
$rules
;
}
else
{
$rules
=
[];
//
$rules = [];
if
(
$evento
->
tipo
!=
"PIBEX"
){
$rules
[
'anexoPlanilhaPontuacao'
]
=
[
'required'
];
$rules
[
'anexoLattesCoordenador'
]
=
[
'required'
,
'mimes:pdf'
];
...
...
@@ -102,4 +103,4 @@ class UpdateTrabalho extends FormRequest
];
}
}
}
\ No newline at end of file
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