Esempio n. 1
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  Faq $faq
  * @return Response
  */
 public function destroy(Faq $faq)
 {
     $this->faq->destroy($faq);
     Flash::success(trans('faq::faqs.messages.faq deleted'));
     return redirect()->route('admin.faq.faq.index');
 }
Esempio n. 2
0
 /**
  * Display the questions & answers
  * @return $this
  */
 public function index()
 {
     $faqs = $this->faq->all();
     return view('faq::public.faq')->with(compact('faqs'));
 }