Commit 5e6a8085 authored by José Rômulo's avatar José Rômulo
Browse files

Correção excluir edital

parent 7645ccbb
......@@ -449,6 +449,7 @@ class EventoController extends Controller
}
if(isset($trabalhos)){
$trabalhos->delete();
Trabalho::withTrashed()->where('evento_id', $id)->update(['evento_id' => null]);
}
Storage::deleteDirectory('pdfEdital/' . $evento->id );
......
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