public function handleApplication(VolunteerApplicationFormRequest $request)
 {
     event(new VolunteerFormWasSubmitted($request));
     if ($request->ajax()) {
         return response("received");
     }
     return redirect('getinvolved');
 }
 /**
  * Create a new event instance.
  *
  * @param VolunteerApplicationFormRequest $request
  */
 public function __construct(VolunteerApplicationFormRequest $request)
 {
     $this->name = $request->get('name', 'not supplied');
     $this->title = $request->get('title', 'not supplied');
     $this->email = $request->get('email', 'not supplied');
     $this->phone = $request->get('phone', 'not supplied');
     $this->address = $request->get('address', 'not supplied');
     $this->country = $request->get('country', 'not supplied');
     $this->date_of_birth = $request->get('date_of_birth', 'not supplied');
     $this->city = $request->get('city', 'not supplied');
     $this->project = $request->get('project', 'not supplied');
     $this->application_type = $request->get('application_type', 'not supplied');
 }