예제 #1
0
 public static function get_taxonomyitem($id = null)
 {
     return \App\Entities\Taxonomyitem::where('id', '=', $id)->first();
 }
 public function deteleteall($idtree)
 {
     $objTerm = new Taxonomyitem();
     $terms = $objTerm->where('parent', '=', $idtree)->get();
     foreach ($terms as $v) {
         $v->delete();
         $this->deteleteall($v['id']);
     }
 }