private function setPrograms() { $programs = ProgramsModel::where('program_category', $this->combination)->where('program_min_points', '<=', $this->total_points)->get(); $this->programs_draft = $programs->toArray(); }
public function getProgramsByCat($category) { $programs = ProgramsModel::where('program_category', $category)->get(); return $programs->toArray(); }