/**
  * @param PackageCourseRequest $request
  * @return \Illuminate\Http\JsonResponse
  */
 public function update(PackageCourseRequest $request)
 {
     $package = Package::findOrFail($request->get('package_id'));
     $inputs = $request->except(['package_id', '_token', '_method']);
     $package_course = $package->courses()->findOrFail($request->get('id'));
     $package_course->update($inputs);
     return response()->json(['message' => 'Successfully Save!', 'data' => $package_course]);
 }
 public function store(PackageCourseRequest $request)
 {
     dd($request->all());
 }