public function openings() { $student_testimonials = StudentTestimonial::all()->random(3); return view('pages.openings', compact('student_testimonials')); }
/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { $studentTestimonial = StudentTestimonial::findOrFail($id); $studentTestimonial->delete(); return redirect('admin/StudentTestimonial'); }