示例#1
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function destroy($id)
 {
     Course::destroy($id);
     return redirect('/courses');
 }
 /**
  * Elimina curso
  *
  * @param Int id
  */
 public function destroy($id)
 {
     Course::destroy($id);
     return redirect()->route('courses.index');
 }
 /**
  * Remove a course
  *
  * @param Request $request
  * @return mixed
  */
 public function removeCourse(Request $request)
 {
     $courseCode = $request['courseCode'];
     // Remove the course
     Course::destroy($courseCode);
     return redirect()->back();
 }