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