Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
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
04a775ec
Commit
04a775ec
authored
3 years ago
by
Guilherme Silva
Browse files
Options
Download
Email Patches
Plain Diff
Mudanças na forma de criação da documentação complementar
parent
743a0f82
master
carl-branch
dependabot/composer/dompdf/dompdf-1.2.2
dependabot/composer/guzzlehttp/guzzle-6.5.8
dependabot/composer/guzzlehttp/psr7-1.8.5
dependabot/composer/symfony/http-kernel-4.4.50
dependabot/npm_and_yarn/decode-uri-component-0.2.2
dependabot/npm_and_yarn/express-4.18.2
dependabot/npm_and_yarn/json5-and-json5-2.2.3
dependabot/npm_and_yarn/loader-utils-and-webpack-cli-1.4.2
dependabot/npm_and_yarn/minimist-and-mkdirp-1.2.8
dependabot/npm_and_yarn/qs-and-express-6.11.0
excluir_projeto_submetido
updates_mar
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/Http/Controllers/DocumentacaoComplementarController.php
+5
-6
app/Http/Controllers/DocumentacaoComplementarController.php
database/migrations/2022_02_22_094237_create_documentacao_complementars_table.php
+4
-4
..._02_22_094237_create_documentacao_complementars_table.php
with
9 additions
and
10 deletions
+9
-10
app/Http/Controllers/DocumentacaoComplementarController.php
View file @
04a775ec
...
...
@@ -17,9 +17,10 @@ class DocumentacaoComplementarController extends Controller
$docComp
=
DocumentacaoComplementar
::
find
(
$request
->
docId
);
}
else
{
$docComp
=
new
DocumentacaoComplementar
;
$docComp
->
save
();
}
$pasta
=
'docComplementar/'
.
Auth
::
user
()
->
id
;
$pasta
=
'docComplementar/'
.
$docComp
->
id
;
$docComp
->
termoCompromisso
=
Storage
::
putFileAs
(
$pasta
,
$request
->
termoCompromisso
,
"Termo De Compromisso.pdf"
);
$docComp
->
comprovanteMatricula
=
Storage
::
putFileAs
(
$pasta
,
$request
->
comprovanteMatricula
,
"Comprovante De Matricula.pdf"
);
...
...
@@ -27,11 +28,9 @@ class DocumentacaoComplementarController extends Controller
$docComp
->
termoCompromisso
=
Storage
::
putFileAs
(
$pasta
,
$request
->
termoCompromisso
,
"TermoDeCompromisso.pdf"
);
$docComp
->
participante_id
=
$request
->
partcipanteId
;
$docComp
->
linkLattes
=
$request
->
linkLattes
;
if
(
$request
->
docId
!=
null
){
$docComp
->
update
();
}
else
{
$docComp
->
save
();
}
return
redirect
()
->
back
()
->
with
([
'sucesso'
=>
"Documentação complementar enviada com sucesso"
]);
...
...
This diff is collapsed.
Click to expand it.
database/migrations/2022_02_22_094237_create_documentacao_complementars_table.php
View file @
04a775ec
...
...
@@ -15,10 +15,10 @@ class CreateDocumentacaoComplementarsTable extends Migration
{
Schema
::
create
(
'documentacao_complementars'
,
function
(
Blueprint
$table
)
{
$table
->
bigIncrements
(
'id'
);
$table
->
string
(
'termoCompromisso'
);
$table
->
string
(
'comprovanteMatricula'
);
$table
->
string
(
'pdfLattes'
);
$table
->
string
(
'linkLattes'
);
$table
->
string
(
'termoCompromisso'
)
->
nullable
()
;
$table
->
string
(
'comprovanteMatricula'
)
->
nullable
()
;
$table
->
string
(
'pdfLattes'
)
->
nullable
()
;
$table
->
string
(
'linkLattes'
)
->
nullable
()
;
$table
->
integer
(
'participante_id'
)
->
nullable
();
$table
->
foreign
(
'participante_id'
)
->
references
(
'id'
)
->
on
(
'participantes'
);
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help