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
f96e4023
Commit
f96e4023
authored
Apr 09, 2022
by
Guilherme Silva
Browse files
Criação de modalidade no projeto
parent
ee7f7180
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/Trabalho.php
View file @
f96e4023
...
...
@@ -20,6 +20,7 @@ class Trabalho extends Model
'linkGrupoPesquisa'
,
'linkLattesEstudante'
,
'comentario'
,
'modalidade'
,
'anexoDecisaoCONSU'
,
'anexoAutorizacaoComiteEtica'
,
...
...
@@ -96,7 +97,7 @@ class Trabalho extends Model
return
$this
->
belongsTo
(
'App\CoordenadorComissao'
);
}
public
function
avaliadors
(){
return
$this
->
belongsToMany
(
'App\Avaliador'
)
->
withPivot
(
'status'
,
'AnexoParecer'
,
'parecer'
,
'recomendacao'
,
'created_at'
);
return
$this
->
belongsToMany
(
'App\Avaliador'
)
->
withPivot
(
'status'
,
'AnexoParecer'
,
'parecer'
,
'recomendacao'
,
'created_at'
,
'pontuacao'
);
}
public
function
substituicaos
(){
...
...
database/migrations/2022_04_05_125626_add_modalidade_trabalho.php
0 → 100644
View file @
f96e4023
<?php
use
Illuminate\Database\Migrations\Migration
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
class
AddModalidadeTrabalho
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
table
(
'trabalhos'
,
function
(
Blueprint
$table
)
{
$table
->
string
(
'modalidade'
)
->
nullable
();;
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
table
(
'trabalhos'
,
function
(
Blueprint
$table
)
{
$table
->
dropColumn
(
'modalidade'
);
});
}
}
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