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
f9c0e4eb
Commit
f9c0e4eb
authored
Dec 02, 2022
by
Lucas Henrique
Browse files
Soluciona erro ao editar um projeto sem alterar o nome do Plano de Trabalho
parent
8739a623
Changes
1
Show whitespace changes
Inline
Side-by-side
app/Http/Controllers/TrabalhoController.php
View file @
f9c0e4eb
...
...
@@ -1033,8 +1033,10 @@ class TrabalhoController extends Controller
$file
=
$request
->
anexoPlanoTrabalho
;
Storage
::
putFileAs
(
$path
,
$file
,
$nome
);
}
else
{
if
(
$arquivo
->
nome
!=
$path
.
$nome
)
{
Storage
::
rename
(
$arquivo
->
nome
,
$path
.
$nome
);
}
}
$arquivo
->
update
([
'titulo'
=>
$titulo
,
'nome'
=>
$path
.
$nome
,
...
...
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