public function updateEventsTable()
 {
     $events = EventModel::all();
     foreach ($events as $event) {
         $count = Subscription::findEventCount($event->id);
         EventModel::fixEventCounts($event->id, $count);
     }
 }
Exemplo n.º 2
0
 public function showEvents()
 {
     $events = EventModel::all();
     return View::make('events.show-events')->with('events', $events);
 }