/**
  * Update the specified course in storage.
  *
  * @param UpdateCourseRequest|Request $request
  * @param Course $course
  * @return \Illuminate\Http\Response
  * @internal param int $id
  */
 public function update(UpdateCourseRequest $request, Course $course)
 {
     $course = \Course::updateCourse($course, $request->all());
     return redirect(route('courses.show', $course->slug))->with(['message' => 'Промените на курсот беа успешно зачувани']);
 }
 /**
  * Update the specified resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function update(UpdateCourseRequest $request, $id)
 {
     //
     $input_category = $request->get('input_category');
     $input_course_name = $request->get('input_course_name');
     $input_subject = $request->get('input_subject');
     $input_description = $request->get('input_description');
     $input_start_date = $request->get('input_start_date');
     $input_end_date = $request->get('input_end_date');
     $input_number_of_student = $request->get('input_number_of_student');
     DB::table('courses')->where('id', '=', $id)->update(['cate_id' => $input_category, 'course_name' => $input_course_name, 'subject' => $input_subject, 'description' => $input_description, 'date_start' => $input_start_date, 'date_end' => $input_end_date, 'number_of_student' => $input_number_of_student, 'updated_at' => DB::raw('now()')]);
     return response()->json(['success' => 'success']);
 }