I have a model CourseModule, and each of the items are related to the same model.
CourseModule
Model Function:
public function Children() { return $this->hasMany(self::class, 'Parent', 'Id')->with('Children'); }
Controller Function:
Menu::with("Children")->where(["Parent" => 0])->get();