/** * Show the application welcome screen to the user. * * @return Response */ public function index() { $programs = $this->programRepo->getDropDownArray(); $testimonials = $this->programRepo->getAllTestimonials(); $recent_news = $this->newsRepo->getRecentNews(); return view('pages.index', ['programs' => $programs, 'testimonial_data' => $testimonials, 'recent_news' => $recent_news]); }
public function compose(View $view) { $program_array = $this->programRepo->getDropDownArray(); unset($program_array['Cosmetology Operator']); unset($program_array['Cosmetology Teacher']); $view->with('programs', $program_array); }
public function compose(View $view) { $view->with('programs', $this->programRepo->getDropDownArray()); }