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
70a33b8f
Commit
70a33b8f
authored
Jul 07, 2021
by
Gabriel-31415
Browse files
add email para submissão
parent
ff49ec00
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/TrabalhoController.php
View file @
70a33b8f
...
...
@@ -847,12 +847,16 @@ class TrabalhoController extends Controller
}
DB
::
commit
();
if
(
!
$request
->
has
(
'rascunho'
)
)
{
Notification
::
send
(
Auth
::
user
(),
new
SubmissaoNotification
(
$id
));
}
else
{
}
return
redirect
(
route
(
'proponente.projetos'
))
->
with
([
'mensagem'
=>
'Proposta atualizada!'
]);
}
catch
(
\
Throwable
$th
)
{
DB
::
rollback
();
return
redirect
(
route
(
'proponente.projetos'
))
->
with
([
'mensagem'
=>
$th
->
getMessage
()]);
...
...
@@ -952,8 +956,13 @@ class TrabalhoController extends Controller
$trabalho
->
save
();
DB
::
commit
();
return
redirect
(
route
(
'proponente.projetos'
))
->
with
([
'mensagem'
=>
'Proposta submetida!'
]);
if
(
!
$request
->
has
(
'rascunho'
)
)
{
Notification
::
send
(
Auth
::
user
(),
new
SubmissaoNotification
(
$trabalho
->
id
));
return
redirect
(
route
(
'proponente.projetos'
))
->
with
([
'mensagem'
=>
'Proposta submetida!'
]);
}
else
{
return
redirect
(
route
(
'proponente.projetos'
))
->
with
([
'mensagem'
=>
'Rascunho salvo!'
]);
}
}
catch
(
\
Throwable
$th
)
{
DB
::
rollback
();
return
redirect
(
route
(
'proponente.projetos'
))
->
with
([
'mensagem'
=>
$th
->
getMessage
()]);
...
...
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