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
e58a12bf
Commit
e58a12bf
authored
May 20, 2021
by
Carlos André
Browse files
anexo grupo pesquisa
parent
d3da97ab
Changes
3
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/TrabalhoController.php
View file @
e58a12bf
...
@@ -427,6 +427,11 @@ class TrabalhoController extends Controller
...
@@ -427,6 +427,11 @@ class TrabalhoController extends Controller
$trabalho
->
anexoPlanilhaPontuacao
=
Storage
::
putFileAs
(
$pasta
,
$request
->
anexoPlanilha
,
"Planilha."
.
$request
->
file
(
'anexoPlanilha'
)
->
extension
());
$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
();
$trabalho
->
update
();
return
$trabalho
;
return
$trabalho
;
...
...
app/Trabalho.php
View file @
e58a12bf
...
@@ -28,6 +28,7 @@ class Trabalho extends Model
...
@@ -28,6 +28,7 @@ class Trabalho extends Model
'anexoAutorizacaoComiteEtica'
,
'anexoAutorizacaoComiteEtica'
,
'JustificativaAutorizacaoEtica'
,
'JustificativaAutorizacaoEtica'
,
'anexoLattesCoordenador'
,
'anexoLattesCoordenador'
,
'anexoGrupoPesquisa'
,
'anexoPlanilhaPontuacao'
,
'anexoPlanilhaPontuacao'
,
'anexoProjeto'
,
'anexoProjeto'
,
...
...
database/migrations/2020_02_05_123048_create_trabalhos_table.php
View file @
e58a12bf
...
@@ -27,6 +27,7 @@ class CreateTrabalhosTable extends Migration
...
@@ -27,6 +27,7 @@ class CreateTrabalhosTable extends Migration
$table
->
string
(
'anexoDecisaoCONSU'
)
->
nullable
();
$table
->
string
(
'anexoDecisaoCONSU'
)
->
nullable
();
$table
->
string
(
'anexoPlanilhaPontuacao'
);
$table
->
string
(
'anexoPlanilhaPontuacao'
);
$table
->
string
(
'anexoLattesCoordenador'
);
$table
->
string
(
'anexoLattesCoordenador'
);
$table
->
string
(
'anexoGrupoPesquisa'
);
$table
->
string
(
'anexoAutorizacaoComiteEtica'
)
->
nullable
();
$table
->
string
(
'anexoAutorizacaoComiteEtica'
)
->
nullable
();
$table
->
string
(
'justificativaAutorizacaoEtica'
)
->
nullable
();
$table
->
string
(
'justificativaAutorizacaoEtica'
)
->
nullable
();
//chaves estrangeiras
//chaves estrangeiras
...
...
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