public function index() { //code should be inside a method $events[] = \Calendar::event('Event One', false, '2015-06-05T0800', '2015-06-05T0800', 0); $eloquentEvent = EventModel::first(); //EventModel implements MaddHatter\LaravelFullcalendar\Event $calendar = \Calendar::addEvents($events)->setOptions(['firstDay' => 1])->setCallbacks(['viewRender' => 'function() {alert("Callbacks!");}']); return view('pages.calendar', compact('calendar')); }