Commit 427d659a authored by alinetenorio's avatar alinetenorio
Browse files

deletando anexos do storage ao excluir projeto

parent 7593dd0f
......@@ -656,6 +656,8 @@ class TrabalhoController extends Controller
{
$trabalho = Trabalho::find($request->id);
//dd($trabalho);
Storage::deleteDirectory('trabalhos/' . $trabalho->evento->id . '/' . $trabalho->id );
$trabalho->delete();
return redirect()->back();
}
......
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