/**
  * Update the specified resource in storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function update($id, PartyRegistrationRequest $request)
 {
     PartyRegistration::find($id)->update($request->all());
     return redirect()->action('ChildrenRegistrationController@show', [$id]);
 }
 /**
  * Determine if the user is authorized to make this request.
  *
  * @return bool
  */
 public function authorize()
 {
     $registration = PartyRegistration::find($this->route()->parameter('children'));
     return !is_null($this->user()) && $this->user()->id == $registration->user_id;
 }