branchService = $branchService; } /** * Run the database seeds. * * @return void */ public function run() { $branches = [ "Begeleid wonen", "Forensische zorg", "Kinder- en jeugdpsychiatrie", "LVB-SGLVG", "mbo's en hbo's", "Specialistische ggz", "Verslavingszorg", "vLOGO", ]; foreach ($branches as $branch) { $new_branch = $this->branchService->save(['title' => $branch]); } } }