public function run()
 {
     $volunteerEvent = new VolunteerEvent();
     $volunteerEvent->name = 'Helpster Kick-off';
     $volunteerEvent->event_date = '2016-03-21';
     $volunteerEvent->location = 'Helpster.site';
     $volunteerEvent->description = 'This is the first event for Helpster, help kick it off by inviting all your friends';
     $volunteerEvent->volunteers_needed = '100';
     $volunteerEvent->signup_deadline = '2016-03-21';
     $volunteerEvent->org_id = 1;
     $volunteerEvent->save();
 }
 public function showWelcome()
 {
     $events = VolunteerEvent::take(3)->get();
     // dd($events);
     return View::make('hello')->with('events', $events);
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $organization = Organization::find($id);
     $events = VolunteerEvent::where('name', '=', Auth::user()->name)->lists('name');
     return View::make('organization.edit', compact('organization', 'events'));
 }
 public function viewUsers($id)
 {
     $rsvps = VolunteerEvent::with('rsvps')->where('id', '=', $id)->first();
     return View::make('events.users')->with('rsvps', $rsvps);
 }