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
d3febbe6
"resources/vscode:/vscode.git/clone" did not exist on "7b97025b3be0da6f3054b897ce9628b75cf36db2"
Commit
d3febbe6
authored
Mar 16, 2022
by
Guilherme Silva
Browse files
Adicionado referencias para a documentação complementar
parent
c17b7eb4
Changes
2
Show whitespace changes
Inline
Side-by-side
app/Http/Controllers/ParticipanteController.php
View file @
d3febbe6
...
...
@@ -92,6 +92,13 @@ class ParticipanteController extends Controller
return
view
(
'administrador.listarBolsas'
)
->
with
([
'participantes'
=>
$participantes
,
'trabalhos'
=>
$trabalhos
]);
}
public
function
listarParticipanteProjeto
(
Request
$request
){
$trabalho
=
Trabalho
::
find
(
$request
->
projeto_id
);
$participantes
=
$trabalho
->
participantes
;
return
view
(
'documentacaoComplementar.listar'
)
->
with
([
'participantes'
=>
$participantes
,
'trabalho'
=>
$trabalho
]);
}
public
function
alterarBolsa
(
$id
,
$tipo
){
$participante
=
Participante
::
find
(
$id
);
if
(
$participante
->
tipoBolsa
==
null
){
...
...
app/Participante.php
View file @
d3febbe6
...
...
@@ -33,4 +33,8 @@ class Participante extends Model
public
function
planoTrabalho
()
{
return
$this
->
hasOne
(
'App\Arquivo'
,
'participanteId'
);
}
public
function
documentacaoComplementar
()
{
return
$this
->
hasOne
(
'App\DocumentacaoComplementar'
,
'participante_id'
);
}
}
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