public function deleting($risk)
 {
     if (!$risk->is_deletable) {
         return false;
     }
     parent::deleting($risk);
     event(new RiskEvents\RiskDeleted($risk));
 }
 public function deleting($tree)
 {
     if (!$tree->is_deletable) {
         return false;
     }
     parent::deleting($tree);
     foreach ($tree->risks as $risk) {
         $risk->delete();
     }
     event(new TreeEvents\TreeDeleted($tree));
 }
 public function deleting($attack)
 {
     parent::deleting($attack);
     event(new AttackEvents\AttackDeleted($attack));
 }
 public function deleting($defence)
 {
     parent::deleting($defence);
     event(new DefenceEvents\DefenceDeleted($defence));
 }