public function getShowTestimonials() { $testimonials = Testimonial::all(); echo $this->blade->render('testimonials', ['testimonials' => $testimonials]); }
/** * Show the testimonials page */ public function getShowTestimonials() { $testimonials = Testimonial::all(); $this->response->withView('testimonials')->with('testimonials', $testimonials)->render(); }