Exemple #1
0
 public function boot()
 {
     $boots = Node::whereHas('parents', function ($q) {
         $q->where('node_parent_id', '=', '0');
     })->get();
     return $boots;
 }