コード例 #1
0
ファイル: ExercisesController.php プロジェクト: nirlewin/test
 /**
  * Delete the given Exercise.
  *
  * @param  int      $id
  * @return Redirect
  */
 public function getDelete($id = null)
 {
     $exercise = Exercise::destroy($id);
     // Redirect to the group management page
     return redirect('admin/exercises')->with('success', Lang::get('message.success.delete'));
 }