Exemplo n.º 1
0
 public function delete()
 {
     TodoItem::where('todo_list_id', $this->id)->delete();
     parent::delete();
 }