public function forSlug($slug) { return $this->menu->newQuery()->where('slug', '=', $slug)->first(); return $parent->children; }