/** * Display a listing of the resource. * * @return Response */ public function index() { // get $testimonials $testimonials = Testimonial::all(); return $testimonials; }
/** * Display the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function show() { $testimonials = Testimonial::all(); $trainings = Training::select('id', 'training_name')->get(); return view('testimonials.show', compact('testimonials', 'trainings')); }
/** * Display the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function show() { $testimonials = Testimonial::all(); return view('testimonials.show', compact('testimonials')); }