<?php

class CalendarsController extends BaseController {

  public function index()
  {
    $events = Events::with('calendar')->orderBy('start_date')->orderBy('end_date')->get();

    return View::make('calendar.index')->with('events', $events);
  }

}
<?php

class CalendarsController extends BaseController {

  public function index()
  {
    $events = Events::with('calendar')->where('active', '=', 1)->orderBy('start_date')->orderBy('end_date')->get();

    return View::make('calendar.index')->with('events', $events);
  }

}
Make sure we limit the /calendar events to just those that are marked as active.
Make sure we limit the /calendar events to just those that are marked as active.
