Example #1
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  Testimonial $testimonial
  * @return Response
  */
 public function destroy(Testimonial $testimonial)
 {
     $this->testimonial->destroy($testimonial);
     flash()->success(trans('core::core.messages.resource deleted', ['name' => trans('testimonials::testimonials.title.testimonials')]));
     return redirect()->route('admin.testimonials.testimonial.index');
 }
 public function compose(View $view)
 {
     $view->with('testimonials', $this->testimonial->all());
 }
 public function compose(View $view)
 {
     $view->with('randomTestimonials', $this->testimonials->randomTestimonials());
 }
Example #4
0
 public function index()
 {
     $testimonials = $this->testimonial->all();
     return view('testimonials', compact('testimonials'));
 }