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
d9932250
"...views/evento/git@sites.upe.br:walter.felipe/submeta.git" did not exist on "229a72379a5b09c1c914aadb3c535eed495054e7"
Commit
d9932250
authored
Nov 22, 2022
by
Lucas Henrique
Browse files
Adicionando id do proponente ao model de Arquivo
parent
517d938f
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Arquivo.php
View file @
d9932250
...
@@ -15,7 +15,7 @@ class Arquivo extends Model
...
@@ -15,7 +15,7 @@ class Arquivo extends Model
use
SoftDeletes
;
use
SoftDeletes
;
protected
$fillable
=
[
protected
$fillable
=
[
'nome'
,
'titulo'
,
'versao'
,
'versaoFinal'
,
'data'
,
'trabalhoId'
,
'participanteId'
'nome'
,
'titulo'
,
'versao'
,
'versaoFinal'
,
'data'
,
'trabalhoId'
,
'participanteId'
,
'proponenteId'
];
];
public
function
trabalho
(){
public
function
trabalho
(){
...
@@ -29,6 +29,11 @@ class Arquivo extends Model
...
@@ -29,6 +29,11 @@ class Arquivo extends Model
public
function
participante
()
{
public
function
participante
()
{
return
$this
->
belongsTo
(
'App\Participante'
,
'participanteId'
);
return
$this
->
belongsTo
(
'App\Participante'
,
'participanteId'
);
}
}
public
function
proponente
()
{
return
$this
->
belongsTo
(
'App\Proponente'
,
'proponenteId'
);
}
public
function
avaliadors
(){
public
function
avaliadors
(){
return
$this
->
belongsToMany
(
'App\Avaliador'
,
'avaliadors_plano_trabalho'
)
->
withPivot
(
'status'
,
'AnexoParecer'
,
'parecer'
,
'recomendacao'
,
'created_at'
);
return
$this
->
belongsToMany
(
'App\Avaliador'
,
'avaliadors_plano_trabalho'
)
->
withPivot
(
'status'
,
'AnexoParecer'
,
'parecer'
,
'recomendacao'
,
'created_at'
);
}
}
...
...
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