fix bug delete

original
ajikamaludin 2 years ago
parent 0207f6fefb
commit 199f810e6b
No known key found for this signature in database
GPG Key ID: E4F565A376B260B7

@ -276,6 +276,8 @@ class DocumentController extends Controller
public function destroy(Document $doc)
{
$doc->shares()->delete();
$doc->reminders()->delete();
$doc->delete();
return redirect()->back();
}

Loading…
Cancel
Save