Commit f9c0e4eb authored by Lucas Henrique's avatar Lucas Henrique
Browse files

Soluciona erro ao editar um projeto sem alterar o nome do Plano de Trabalho

parent 8739a623
......@@ -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,
......
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