コード例 #1
0
ファイル: FaqsController.php プロジェクト: nirlewin/test
 /**
  * Delete the given Faq.
  *
  * @param  int      $id
  * @return Redirect
  */
 public function getDelete($id = null)
 {
     $faq = Faq::destroy($id);
     // Redirect to the group management page
     return redirect('admin/faqs')->with('success', Lang::get('message.success.delete'));
 }
コード例 #2
0
ファイル: FaqController.php プロジェクト: jambik/sellmecar
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     Faq::destroy($id);
     Flash::success("Запись - {$id} удалена");
     return redirect(route('admin.faq.index'));
 }
コード例 #3
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     Faq::destroy($id);
     return redirect('faqs');
 }