Commit e58a12bf authored by Carlos André's avatar Carlos André
Browse files

anexo grupo pesquisa

parent d3da97ab
......@@ -427,6 +427,11 @@ class TrabalhoController extends Controller
$trabalho->anexoPlanilhaPontuacao = Storage::putFileAs($pasta, $request->anexoPlanilha, "Planilha.". $request->file('anexoPlanilha')->extension());
}
// Anexo grupo pesquisa
if(isset($request->grupoPesquisa)){
$trabalho->anexoGrupoPesquisa = Storage::putFileAs($pasta, $request->anexoPlanilha, "Grupo_de_pesquisa.". $request->file('grupoPesquisa')->extension());
}
$trabalho->update();
return $trabalho;
......
......@@ -28,6 +28,7 @@ class Trabalho extends Model
'anexoAutorizacaoComiteEtica',
'JustificativaAutorizacaoEtica',
'anexoLattesCoordenador',
'anexoGrupoPesquisa',
'anexoPlanilhaPontuacao',
'anexoProjeto',
......
......@@ -27,6 +27,7 @@ class CreateTrabalhosTable extends Migration
$table->string('anexoDecisaoCONSU')->nullable();
$table->string('anexoPlanilhaPontuacao');
$table->string('anexoLattesCoordenador');
$table->string('anexoGrupoPesquisa');
$table->string('anexoAutorizacaoComiteEtica')->nullable();
$table->string('justificativaAutorizacaoEtica')->nullable();
//chaves estrangeiras
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment